上一页 1 2 3 4 5 6 7 8 ··· 22 下一页
摘要: redis学习笔记 redis安装 1、 yum install gcc-c++​2、make​3、redis的默认安装路径 /usr/local/bin​4、redis默认不是后台启动的,修改配置文件​redis.conf 修改 daemonize yes redis-benchmark性能测试 阅读全文
posted @ 2021-10-08 22:53 流星小子 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1.创建索引 put localhost:9200/person 2.添加数据 put localhost:9200/person/_doc/1 { "first_name" : "John", "last_name" : "Smith", "age": 25, "about" : "I love 阅读全文
posted @ 2021-09-19 20:27 流星小子 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1.全排序方法 2. 堆排序的方法 阅读全文
posted @ 2019-12-04 22:35 流星小子 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 1.搜索文件和文件夹 find ~ -name "test.txt" 不区分大小写 find ~ -iname "test.txt" 2.对日志内容做统计 打印指定列 分隔符是空格 awk '{print $1, $3}' test.txt 条件匹配 awk '$2=="38892" && $4== 阅读全文
posted @ 2019-11-07 16:14 流星小子 阅读(111) 评论(0) 推荐(0) 编辑
摘要: # _*_ coding:utf-8 _*_import reif __name__ == "__main__": filename = 'data.txt' with open(filename,'r',encoding='UTF-8') as file_to_read: while True: 阅读全文
posted @ 2019-09-29 17:53 流星小子 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 复制下面命令存到.bat 文件中,并允许bat文件 taskkill /f /im explorer.exeattrib -h -i %userprofile%\AppData\Local\IconCache.dbdel %userprofile%\AppData\Local\IconCache.d 阅读全文
posted @ 2019-08-02 22:57 流星小子 阅读(756) 评论(0) 推荐(0) 编辑
摘要: 数值计算函数的更新 tf.sub ——> tf.subtract tf.mul ——> tf.multiply tf.div ——> tf.divide tf.mod ——> tf.truncatemod tf.inv ——> tf.reciprocal tf.list_diff ——> tf.se 阅读全文
posted @ 2019-05-22 10:40 流星小子 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 通过依赖注入管理和分发的对象被称为服务(service) Angular 使用装饰器@Injectable来表示服务类 Angular 将创建依赖注入所需对象的职责委托给了提供程序(Providers)实际上,Angular 提供了一组不同的提供程序,每个提供程序使用一种不同的方式来创建对象,从而可 阅读全文
posted @ 2019-05-16 11:01 流星小子 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 聚集索引:聚集索引表示表中存储的数据按照索引的顺序存储,检索效率比非聚集索引高,但对数据更新影响较大; 非聚集索引:非聚集索引表示数据存储在一个地方,索引存储在另一个地方,索引带有指针指向数据的存储位置,非聚集索引检索效率比聚集索引低,但对数据更新影响较小。 聚集索引:聚集索引表示表中存储的数据按照 阅读全文
posted @ 2019-04-19 13:15 流星小子 阅读(1805) 评论(0) 推荐(0) 编辑
摘要: import numpy as npimport matplotlib.pyplot as plt x = np.linspace(0,10,1000)# 自变量y = np.sin(x) + 1 # 因变量yz = np.cos(x**2) +1 # 因变量zplt.rcParams['font. 阅读全文
posted @ 2019-03-16 16:57 流星小子 阅读(520) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 22 下一页