如何对大量文件运行同一个python程序

2025-05-24 06:00:55
推荐回答(1个)
回答1:

用glob
import glob
for each_file in glob.glob('*.txt'):
print(each_file)