代码改变世界

随笔档案-2016年11月

python - 文件迭代

2016-11-23 13:44 by abce, 252 阅读, 收藏,
摘要: >>> f=open('passwd','r')>>> for lines in f:... print lines 不再需要像老版本中那样调用readline(): 阅读全文

Python Decorator 和函数式编程

2016-11-16 13:38 by abce, 209 阅读, 收藏,
摘要: 看到一篇翻译不错的文章,原文链接: Python Decorator 和函数式编程 阅读全文