hy1.txt有三列
hy2.txt有四列
根据第二列匹配
内容相同则写入新文件
#打开文件1,逐行读取
f1=open('hy1.txt','r')
lines_a=f1.readlines()
#打开文件2,逐行读取
f2=open('hy2.txt','r')
lines_b=f2.readlines()
out_file = open('hy3.txt','w')
#用for遍历,并分割
for line_a in lines_a:
column_a= line_a.strip().split(