摘要: pid_ = rds.connection_pool.pidimport subprocess#handle = subprocess.Popen("", shell=False)subprocess.Popen("taskkill /F /T /PID {}".format(pid_), shell=True)print('go-----------') 阅读全文
posted @ 2018-05-22 22:21 papering 阅读(156) 评论(0) 推荐(0) 编辑
摘要: http://redis-py.readthedocs.io/en/latest/_modules/redis/client.html 解决办法: 阅读全文
posted @ 2018-05-22 21:33 papering 阅读(579) 评论(0) 推荐(0) 编辑
摘要: redis.connection — redis-py 2.10.5 documentation http://redis-py.readthedocs.io/en/latest/_modules/redis/connection.html#ConnectionPool 实例化后 应关闭所有连接,或 阅读全文
posted @ 2018-05-22 21:02 papering 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 4200001526986984.6271074200001526986985.62778144200001526986986.62846764200001526986987.62905124200001526986988.62972264200001526986989.63043984200001 阅读全文
posted @ 2018-05-22 19:05 papering 阅读(278) 评论(0) 推荐(0) 编辑
摘要: ac_type = 'qq' if ac_type == 'qq': myid, mypwd = qq_key xp = '/html/body/div/div/div[2]/div/div/div/ul/li[3]' # udp xp = '/html/body/div/div/div[2]/div/d... 阅读全文
posted @ 2018-05-22 18:22 papering 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 8 关注 41万 粉丝 u_following, u_followed = [i.get_attribute('number') for i in browser.find_element... 阅读全文
posted @ 2018-05-22 18:16 papering 阅读(232) 评论(0) 推荐(0) 编辑
摘要: From / Size | Elasticsearch Reference [6.2] | Elastic http://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html Fro 阅读全文
posted @ 2018-05-22 15:50 papering 阅读(139) 评论(0) 推荐(0) 编辑
摘要: db.collection.mapReduce() — MongoDB Manual 3.6 https://docs.mongodb.com/manual/reference/method/db.collection.mapReduce/ 阅读全文
posted @ 2018-05-22 12:41 papering 阅读(137) 评论(0) 推荐(0) 编辑
摘要: d = {'a': [1, 2], 'b': [1]}# --->d={'b':[1],'a':[1,2]} feature_d_ = {} for feature in feature_complete_l: feature_d_[feature] = feature_d[feature] del feature_d feature_d ... 阅读全文
posted @ 2018-05-22 01:13 papering 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 11.10. shutil — High-level file operations — Python 3.6.5 documentation https://docs.python.org/3/library/shutil.html 阅读全文
posted @ 2018-05-22 00:20 papering 阅读(140) 评论(0) 推荐(0) 编辑