我基本上想从列表中读取一个元素,并在如下所示的for循环的range函数中使用它
import csv
with open('input.csv', 'r') as f:
reader = csv.reader(f)
data_list = list(reader)
for i in range (0,210):
chain_no = data_list[i][0]
no_of_links = data_list[i][1]
for j in range (2, 2*(int(data_list[i][3]))):
link1 = []
link1.append(data_list[i][j])
我收到错误“ ValueError:int()的无效文字,基数为10:“”
有人可以帮帮我吗