10 2017 档案

摘要:1 set ts=4 2 set expandtab 3 set autoindent 1 set ts=4 2 set expandtab 3 set autoindent 1 set ts=4 2 set expandtab 3 set autoindent 阅读全文
posted @ 2017-10-14 17:11 安阳小栈-客官歇会吧 阅读(204) 评论(0) 推荐(0)
摘要:Answering this for late-comers because I don't think that the posted answers get to the root of the problem, which is the lack of locale environment v 阅读全文
posted @ 2017-10-12 11:29 安阳小栈-客官歇会吧 阅读(283) 评论(0) 推荐(0)
摘要:SET [GLOBAL | SESSION] TRANSACTION transaction_property [, transaction_property] ... transaction_property: ISOLATION LEVEL level | READ WRITE | READ ONLY level: REPEATABLE READ ... 阅读全文
posted @ 2017-10-12 10:40 安阳小栈-客官歇会吧 阅读(145) 评论(0) 推荐(0)
摘要:multiprocessing是python的多进程库,multiprocessing.dummy则是多线程的版本,使用都一样。 其中都有pool池的概念,进程池/线程池有共同的方法,其中方法对比如下 : There are four choices to mapping jobs to proce 阅读全文
posted @ 2017-10-10 14:13 安阳小栈-客官歇会吧 阅读(4298) 评论(0) 推荐(1)
摘要:基本配置:阿里云服务器低配,单核2G内存 首先是看协程的效果: import requests import lxml.html as HTML import sys import time import gevent from gevent import monkey monkey.patch_a 阅读全文
posted @ 2017-10-09 16:34 安阳小栈-客官歇会吧 阅读(405) 评论(0) 推荐(0)
摘要:https://learngitbranching.js.org/ 阅读全文
posted @ 2017-10-06 15:35 安阳小栈-客官歇会吧 阅读(120) 评论(0) 推荐(0)
摘要:a = [] with open('douban.json','r') as f: for i in f.readlines(): a.append((i.encode('utf8').decode('unicode_escape'))) 阅读全文
posted @ 2017-10-06 11:26 安阳小栈-客官歇会吧 阅读(2056) 评论(0) 推荐(0)