摘要: 方法1: with open('1.txt', 'r') as fp: for line in fp: print(line) 方法2: with open('1.txt', 'r') as fp: text = fp.readline() while text!='': print(text) t 阅读全文
posted @ 2021-03-17 17:22 coffee~ 阅读(511) 评论(0) 推荐(0) 编辑