2018年9月5日

020_with

摘要: #!/usr/bin/env python# Author:liujunwith open("test","r",encoding="utf-8") as f: for line in f: print(line.strip())with open("test","r",encoding="utf- 阅读全文

posted @ 2018-09-05 20:13 langjitianyadaolao 阅读(83) 评论(0) 推荐(0) 编辑

018_IO

摘要: #!/usr/bin/env python# Author:liujunf = open("test","r",encoding="utf-8") # r --> readable # r --> writeable # r+ --> read and write # w+ --> write an 阅读全文

posted @ 2018-09-05 20:12 langjitianyadaolao 阅读(85) 评论(0) 推荐(0) 编辑

导航