随笔分类 -  Python

摘要:http://jingyan.baidu.com/article/7082dc1c6ad06ce40a89bdf2.html 阅读全文
posted @ 2016-11-21 14:48 kane_zch 阅读(173) 评论(0) 推荐(0)
摘要:http://www.91pen.net/centos6-5-upgrade-python-2-6-to-2-7.html 阅读全文
posted @ 2016-07-14 16:11 kane_zch 阅读(142) 评论(0) 推荐(0)
摘要:http://www.linuxde.net/2014/05/15576.html 阅读全文
posted @ 2016-07-14 15:45 kane_zch 阅读(147) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/Bonker/p/3584707.html 注:按如上贴子装完pydev后在eclipse里显示不出来,查看官网说明,原来当前的pydev版本需要java8,而我本地还是java7,本地装java8后解决该问题 阅读全文
posted @ 2016-07-14 09:01 kane_zch 阅读(100) 评论(0) 推荐(0)
摘要:http://zetcode.com/gui/pyqt4/ 阅读全文
posted @ 2016-07-11 17:57 kane_zch 阅读(137) 评论(0) 推荐(0)
摘要:http://pykafka.readthedocs.io/en/latest/index.html 阅读全文
posted @ 2016-07-05 16:54 kane_zch 阅读(1600) 评论(0) 推荐(0)
摘要:一,需要加载json lib import json 二、把list转为json格式的字符串 转完后打印: 三、相关官方API请参考 https://docs.python.org/2/library/json.html 阅读全文
posted @ 2016-07-05 16:53 kane_zch 阅读(245) 评论(0) 推荐(0)
摘要:昨日想在python的一个函数中做一下发送次数的统计,需要用到全局变量,如下 结果报该错误,解决办法是在函数中加一行,global COUNT 即可解决 阅读全文
posted @ 2016-07-05 16:44 kane_zch 阅读(7664) 评论(0) 推荐(0)
摘要:#coding=utf-8import randomimport time def createRandomMac(): Maclist = [] for i in range(1,7): RANDSTR = "".join(random.sample("0123456789abcdef",2)) 阅读全文
posted @ 2016-06-30 11:34 kane_zch 阅读(434) 评论(0) 推荐(0)
摘要:#coding=utf-8import randomimport timeimport datetime TIMESTART = '2016-06-04 10:00:01' #increase time, string to time, then add seconds you want, at l 阅读全文
posted @ 2016-06-30 11:25 kane_zch 阅读(533) 评论(0) 推荐(0)