我在添加 Excel 工作表的两列中存在的数据并获取其结果时遇到了问题。我尝试了下面的代码,但它连接了下面的列。请帮忙
file=open( "reads.csv", "r")
reader = csv.reader(file)
for line in reader:
value0=line[0]
value1=line[1]
value2= line[0]+line[1]
t=value0,value1,value2
print(t)
('50437171', '150', '50437171150')
('50463638', '107', '50463638107')
('101891833', '150', '101891833150')
('101891682', '151', '101891682151')
('148515110', '150', '148515110150')
('139044904', '119', '139044904119')
('139056020', '151', '139056020151')
('151860851', '103', '151860851103')
('139044904', '151', '139044904151')
('139044905', '150', '139044905150')
('50444197', '151', '50444197151')
斯蒂芬大帝
慕勒3428872
相关分类