python fileinput处理多文件时间:2022-09-23 04:34:45 import fileinput with fileinput.input(files=(path1,path2)) as f: for line in f: print(line)