摘要: from elasticsearch import Elasticsearch# 默认host为localhost,port为9200.但也可以指定host与portes = Elasticsearch()# 添加或更新数据,index,doc_type名称... 阅读全文
posted @ 2018-07-18 19:55 luoganttcc 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 原文 阅读全文
posted @ 2018-07-18 14:26 luoganttcc 阅读(65) 评论(0) 推荐(0) 编辑
摘要: open ~/.ssh在.ssh/config(或者/etc/ssh/ssh_config)中配置:StrictHostKeyChecking noUserKnownHostsFile /dev/null 阅读全文
posted @ 2018-07-17 15:51 luoganttcc 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 原文永久挂载 阅读全文
posted @ 2018-07-16 18:53 luoganttcc 阅读(69) 评论(0) 推荐(0) 编辑
摘要: left = pd.DataFrame({'A': ['A0', 'A1', 'A2'], 'B': ['B0', 'B1', 'B2']}, index=['K0', 'K... 阅读全文
posted @ 2018-07-11 19:43 luoganttcc 阅读(1177) 评论(0) 推荐(0) 编辑
摘要: 链接 阅读全文
posted @ 2018-07-11 15:46 luoganttcc 阅读(131) 评论(0) 推荐(0) 编辑
摘要: TF-IDF 阅读全文
posted @ 2018-07-10 22:32 luoganttcc 阅读(75) 评论(0) 推荐(0) 编辑
摘要: #\d 匹配一个数字字符。等价于 [0-9]#\D 匹配一个非数字字符。等价于 [^0-9]#过滤字符串中的英文与符号,保留汉字import rest = "hello,world!!%[545]你好234世界。。。"ste = re.sub("[A-Za-... 阅读全文
posted @ 2018-07-06 20:59 luoganttcc 阅读(2116) 评论(0) 推荐(0) 编辑
摘要: 官方document#1.0import rem=re.search('(?<=abc)def','cxabcdefgb')print(m.group(0))#1.1m=re.search(r'(?<=-)\w+','apam-egg')print(m.gr... 阅读全文
posted @ 2018-07-05 17:25 luoganttcc 阅读(71) 评论(0) 推荐(0) 编辑
摘要: import cv2# Load an color image in grayscaleimg = cv2.imread('psu.jpeg',3)#cv2.imshow('image',img)res=cv2.resize(img,(1340,1104),... 阅读全文
posted @ 2018-07-01 14:10 luoganttcc 阅读(274) 评论(0) 推荐(0) 编辑