python读取并输出文本文件同时加上行号
摘要:
1 def print_to_file(fname): 2 num = 1 3 #output_file=open(fname+"_OK.txt","w") 4 5 with open(fname+"_OK.txt","w") as output_file: 6 with open(fname, ' 阅读全文
posted @ 2020-12-25 15:43 华山青竹 阅读(3175) 评论(0) 推荐(0) 编辑