随笔(读取文件的最佳方式)

1 for line in open('test.txt'):              #use iterators:best text input mode
2     print(line,end = ' ')

 

posted on 2016-12-18 20:50  知止而后有定  阅读(145)  评论(0)    收藏  举报

导航