The Matplotlib library is designed to work well with many different environments and platforms. As such, the library does not only contain routines fo ...
分类:
其他好文 时间:
2020-06-18 12:42:01
阅读次数:
56
redis是一个内存数据库,数据保存在内存中,但是我们都知道内存的数据变化是很快的,也容易发生丢失。幸好Redis还为我们提供了持久化的机制,分别是RDB(Redis DataBase)和AOF(Append Only File)。 持久化流程: 既然redis的数据可以保存在磁盘上,那么这个流程是 ...
分类:
其他好文 时间:
2020-06-16 18:10:48
阅读次数:
72
_logger.LogInformation("你访问了首页"); _logger.LogWarning("警告信息"); _logger.LogError("错误信息"); 使用DI 直接可以使用对象。 你会发现日志信息输出来的是乱码,这里我们要指定输出格式。 需要添加 System.Text.E ...
分类:
Web程序 时间:
2020-06-16 15:12:17
阅读次数:
112
题目: Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. Y ...
分类:
其他好文 时间:
2020-06-16 12:50:35
阅读次数:
58
Elasticsearch管理中索引的管理非常重要。基于磁盘空间和性能的考量,索引的生命周期管理显得尤为重要。Curator允许对索引创建、删除等操作,下面是我们借助 elasticsearch-curator 插件来定期删除index.本文主要介绍elasticsearch-curator 插件的 ...
分类:
其他好文 时间:
2020-06-15 16:06:21
阅读次数:
138
题目 A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nod ...
分类:
其他好文 时间:
2020-06-14 20:31:35
阅读次数:
61
原因 聚合查询出现这样的报错是因为mysql设定的mode含有 ONLY_FULL_GROUP_BY1mysql> select @@sql_mode;+ +| @@sql_mode |+ +| ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DA ...
分类:
数据库 时间:
2020-06-14 18:37:34
阅读次数:
68
题目: You are given a string s consisting only of characters 0 and 1. A substring [l,?r] of s is a string sl,sl?+?1,sl?+?2... sr, and its length equals ...
分类:
其他好文 时间:
2020-06-14 16:38:35
阅读次数:
51
字符串是Redis最常见的结构,Redis没有用C中的字符串,是自己构建的simple dynamic string来表示字符串 字符串的源码在sds.c/sds.h sds的基本结构 struct sdshdr { unsigned int len; //len表示当前buf中已使用字节长度 un ...
分类:
其他好文 时间:
2020-06-13 23:39:28
阅读次数:
94
通过分析源码可以更好理解List<T>的工作方式,帮助我们写出更稳定的代码。 List<T>源码地址: https://github.com/dotnet/corefx/blob/master/src/System.Collections/src/System/Collections/Generic ...
分类:
Web程序 时间:
2020-06-13 23:22:08
阅读次数:
99