我正在尝试将一个csv文件插入到mysql中。这是我的代码。
SSLSocketFactory
错误是:
path = r'C:\Users\ravi\Desktop\Book1.csv'
with open(path, 'rb') as csvfile:
csv_data = csv.reader(csvfile, delimiter=' ', lineterminator=" ")
for row in csv_data:
print row
cur.execute("INSERT INTO testtable (id,name) VALUES (%s, %s)" % row)
请帮我解决这个问题