原文:http://www.cnblogs.com/linxiyue/p/3908623.html 2.7之后python不再对optparse模块进行扩展,python标准库推荐使用argparse模块对命令行进行解析。 1.example 有一道面试题:编写一个脚本main.py,使用方式如下: Read More
posted @ 2016-09-27 16:06 奋斗终生 Views(1040) Comments(0) Diggs(0) Edit
原文:http://www.cnblogs.com/asmer-stone/p/5470144.html virtualenvwrapper是用来管理virtualenv的扩展包,用着很方便。 1. 安装: 2. 配置: 修改~/.bash_profile或其它环境变量相关文件(如 .bashrc( Read More
posted @ 2016-09-27 13:28 奋斗终生 Views(2170) Comments(0) Diggs(0) Edit