
Python
yzsyb
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python的包管理工具easy_install, setuptools, pip,distribute介绍
刚开始学习Python时,在看文档和别人的blog介绍安装包有的用easy_install, setuptools, 有的使用pip,distribute,那麽这几个工具有什么关系呢,看一下下面这个图就明白了 setuptools, pip,distribute介绍" style="margin-top:0px; margin-right:0px; margin-bottom:0px;转载 2012-11-13 15:50:12 · 2086 阅读 · 0 评论 -
Python函数默认参数的一个小陷阱
def foo(a1, args = []): print "args before = %s" % (args) args.insert(0, 10) args.insert(0, 99999) print "args = %s " % (args) def main(): foo('a') foo('b') if __na转载 2012-11-13 15:52:11 · 824 阅读 · 0 评论