write output from print to a file in python

后端 未结 0 1265
小蘑菇
小蘑菇 2021-01-01 21:12

I have a code that reads multiple text files and print the last line.

from glob import glob
text_files = glob(\'C:/Input/*.txt\')
for file_name in text_files:         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题