摘要: python 文本对象 继承自C的stdio包 打开 可以用内置的open()函数创建 with open("hello.txt") as f: for line in f: print line 等效于旧版本的 f = open("hello.txt") try: for line in f: p 阅读全文
posted @ 2016-03-31 23:04 LandFlow 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 2. Built-in Functions https://docs.python.org/3.4/library/functions.html?highlight=file The Python interpreter has a number of functions and types bui 阅读全文
posted @ 2016-03-31 22:57 LandFlow 阅读(371) 评论(0) 推荐(0) 编辑