摘要: 利用for循环按行读取文件 import sys input_file = sys.argv[1] fileread = open(input_file, 'r', encoding='UTF-8') line_number = 0 for a in fileread: line_number += 阅读全文
posted @ 2019-11-03 20:01 魔阳工 阅读(132) 评论(0) 推荐(0) 编辑