Python
到处蹦跶的羊
这个作者很懒,什么都没留下…
展开
-
python 读文件 和行号
python 读文件 和行号 代码如下: file = open('file.txt','r') for (num,value) in enumerate(file): print "line num is: ",num,"content:",value file.close() with open('file.txt','r') as f: for (原创 2017-02-20 15:54:03 · 10289 阅读 · 0 评论 -
python 列表 list 操作 (不定期更新)
python list 操作原创 2017-02-22 14:00:19 · 255 阅读 · 0 评论