用Python读取大文件(上)

一般咱们在读取文件的时候,会用到read(), readline(), readlines()。 一般可能会有这样的用法:html def test1(): with open("/tmp/test.log", "r") as f: print f.read() 或者 def test2(): f = open("/tmp/test.log", "r") f
相关文章
相关标签/搜索