
python
文章平均质量分 62
ice泉
这个作者很懒,什么都没留下…
展开
-
python 并发编程
Python 并发编程概念首先我们先了解下关于 并发与并行 的概念,这很容易让人混淆如果不注意的话,甚至会有人认为两者是一样的,统称为大家熟悉的并发编程;引用下Erlang之父的解释:ConcurrentTwo queues and one coffee machine.ParallelTwo queues and two coffee machines.个人理解:原创 2017-09-27 18:55:31 · 510 阅读 · 0 评论 -
微博自动登录
微博自动登录后 先根据 redirect_uri 获取code 再根据code获取access_tokenpython 依赖安装包pip install requestspip install sinaweibopy'''微博应用信息'''APP_KEY = '***********'APP_SECRET = "**********原创 2015-12-09 10:58:27 · 1161 阅读 · 0 评论 -
编码问题 UnicodeDecodeError
编码问题是一件头疼的事情,当我们在处理网络数据流时。例如: 在解析从文件中读取的字符串, 想要将字符串统一编码为Unicode。经常会读到乱七八糟的字符串(其他国家的字符串编码)>>> line = 'Y\x02\xd9\xea\x16\xedt\x9a\x9cs\xa0\x9a\xd2\xe0\x94\t\xfd\xff\x17O\xafj\xc3\x04\xfe\x8e\x98\xf1\x9f原创 2017-10-20 17:16:47 · 1913 阅读 · 0 评论 -
restful api 文档定义工具
apidoc installNodejs 安装下载Windows Installer (.msi) 版本的进行安装Nodejs 全局变量设置在安装目录下创建 node_global 和 node_cache 文件夹npm config set prefix "C:\Program Files\nodejs\node_global"npm config set cache原创 2018-01-05 12:28:03 · 3070 阅读 · 1 评论