标签:lin read nbsp line print lines open adl with open
with open(‘file1.txt‘,‘r‘) as f1:
with open(‘file2.txt‘,‘r‘) as f2:
for x,y in zip(f1.readlines(),f2.readlines()):
print(x)
print(y)
注意 as 后面的的f1 代表第一个需要调用的文件 ~
标签:lin read nbsp line print lines open adl with open
原文地址:https://www.cnblogs.com/Hello-python/p/10201972.html