摘要:
倒腾了一下午了,还是不太顺利,顺便记录一下。硬件环境:win8.1 64位 + python2.7.9 32位安装easy_install需要先下载ez_setup.py(需要复制该链接中的内容,创建ez_setup.py执行即可)然后,添加easy_install命令和其他python脚本的到命令... 阅读全文
posted @ 2015-07-28 16:52
Chris*Chen
阅读(376)
评论(0)
推荐(0)
摘要:
该脚本一直监测网络连接情况,若出现断网情况,自动连接网络。话不多说,直接贴代码:NetLogin.py 1 #coding: utf-8 2 3 import requests 4 import time 5 import datetime 6 import sys 7 8 re... 阅读全文
posted @ 2015-07-28 09:36
Chris*Chen
阅读(460)
评论(0)
推荐(0)
摘要:
在Python中,出现'unicode' object is not callable的错误一般是把字符串当做函数使用了。 阅读全文
posted @ 2015-07-28 09:20
Chris*Chen
阅读(286)
评论(0)
推荐(0)
摘要:
问题如下:UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3解决方法:程序开始加上下面两句1 reload(sys) 2 sys.setdefaultencoding( "utf-8" )另外:当字符串... 阅读全文
posted @ 2015-07-28 09:16
Chris*Chen
阅读(295)
评论(0)
推荐(0)

浙公网安备 33010602011771号