python fileinput处理多文件

import fileinput
with fileinput.input(files=(path1,path2)) as f:
    for line in f:
        print(line)

  

posted on 2019-01-08 10:59  hailuo  阅读(316)  评论(0编辑  收藏  举报