with open('a.txt') as f1:
with open('b.txt') as f2:
for line1 in f1:
for line2 in f2:
print(line1+line2)
python3 同时读取两个文件
猜你喜欢
转载自blog.csdn.net/weixin_38246633/article/details/80749087
今日推荐
周排行