原文出处:https://segmentfault.com/a/1190000000350824
原文编写于:2013年12月03日

Python很优雅。使用以下模块有助于保持你的代码整洁、易于维护。欢迎补充。

  • Docopt。忘了optparsea[……]

阅读全文

2.按上面错误提示的目录,把压缩包里的文件夹放到D盘根目录

C:Python27

4.下一步将Add python.exe to Path选择Will be installed to local hard drive. 安装时,如果提示“Python versi[……]

阅读全文

有些网站开启了gzip压缩,访问回来的数据是压缩的,需要解压,故,附上解压的例程:

import StringIO, gzip
compressedstream = StringIO.StringIO(要解压的数据)
gziper = gzip.GzipFile(file[......]

阅读全文