随笔分类 -  python

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要:Python36\site-packages\pymysql\connections.py 阅读全文
posted @ 2018-09-28 10:13 papering 阅读(657) 评论(0) 推荐(0)
摘要:多进程 Not Found: /api/xxxxxxx [pid: 5661|app: 0|req: 5/85] 192.68.17.13 () {32 vars in 454 bytes} [Thu Jul 18 18:09:27 2024] GET /api/xxxxxxx => generat 阅读全文
posted @ 2018-09-27 17:40 papering 阅读(628) 评论(0) 推荐(0)
摘要:豆瓣一年 阿北 03-06-2006 豆瓣blog » Blog Archive » 豆瓣一年 https://blog.douban.com/douban/2006/03/06/61/ 阅读全文
posted @ 2018-09-13 20:43 papering 阅读(195) 评论(0) 推荐(0)
摘要:https://github.com/jhao104/proxy_pool/blob/master/doc/introduce.md 3、代码模块 Python中高层次的数据结构,动态类型和动态绑定,使得它非常适合于快速应用开发,也适合于作为胶水语言连接已有的软件部件。用Python来搞这个代理IP 阅读全文
posted @ 2018-09-11 01:27 papering 阅读(177) 评论(0) 推荐(0)
摘要:json.loads(jsonStr, encoding='utf-8')import ast ast.literal_eval(jsonStr) 阅读全文
posted @ 2018-09-04 15:29 papering 阅读(596) 评论(0) 推荐(0)
摘要:ii.lstrip(' ')[0:2]=='//' ii.lstrip(' ').index('//')==0 阅读全文
posted @ 2018-09-02 09:51 papering 阅读(341) 评论(0) 推荐(0)
摘要:import globimport oscwd = os.getcwd()sep = os.septarget = cwd + sep + 'pages' + sep + '*' + sep + '*'filelist = glob.glob(target)pageNameSet = set([i.split('\\')[1] for i in glob.glob('./pages/*/*')... 阅读全文
posted @ 2018-09-01 20:52 papering 阅读(998) 评论(0) 推荐(0)
摘要:jsUrl = 'http://www.heze.cn/qiye/index.php?a=userinfo&username={}'.format(bizQiyeId)r = requests.get(jsUrl)r.encoding = 'utf-8' 阅读全文
posted @ 2018-08-28 12:16 papering 阅读(142) 评论(0) 推荐(0)
摘要:Python代码分析工具:PyChecker、Pylint - CSDN博客 https://blog.csdn.net/permike/article/details/51026156 阅读全文
posted @ 2018-06-11 11:10 papering 阅读(759) 评论(0) 推荐(0)
摘要:tornado 阅读全文
posted @ 2018-06-07 08:59 papering 阅读(132) 评论(0) 推荐(0)
摘要:7.1. struct — Interpret bytes as packed binary data — Python 3.6.5 documentation https://docs.python.org/3/library/struct.html ource code: Lib/struct. 阅读全文
posted @ 2018-06-06 17:02 papering 阅读(285) 评论(0) 推荐(0)
摘要:https://github.com/PyMySQL/PyMySQL/blob/master/pymysql/__init__.py 建立连接 https://github.com/PyMySQL/PyMySQL/blob/master/pymysql/connections.py https:// 阅读全文
posted @ 2018-05-23 17:25 papering 阅读(620) 评论(0) 推荐(0)
摘要: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 阅读(165) 评论(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 阅读(653) 评论(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 阅读(142) 评论(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 阅读(149) 评论(0) 推荐(0)
摘要:Glossary — Python 3.6.5 documentation https://docs.python.org/3/glossary.html?highlight=equal hashable An object is hashable if it has a hash value wh 阅读全文
posted @ 2018-05-20 17:04 papering 阅读(245) 评论(0) 推荐(0)
摘要:feature_reduce_l = [i if re.search('\d', i) is None else i[0:re.search('\d', i).endpos - 1] for i in feature_l] # set 破坏了顺序 print(feature_reduce_l) print(list(set(feature_reduce_l))) featur... 阅读全文
posted @ 2018-05-19 23:14 papering 阅读(213) 评论(0) 推荐(0)
摘要:文件指针 阅读全文
posted @ 2018-05-19 15:34 papering 阅读(165) 评论(0) 推荐(0)
摘要:TypeError unhashable type:'list' Get unique values from a list in python - Stack Overflow https://stackoverflow.com/questions/12897374/get-unique-valu 阅读全文
posted @ 2018-05-19 14:40 papering 阅读(406) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页