質問編集履歴
1
map()関数で変数に値をいれるところが1変数多かった。
test
CHANGED
File without changes
|
test
CHANGED
@@ -86,7 +86,7 @@
|
|
86
86
|
|
87
87
|
for line in f:
|
88
88
|
|
89
|
-
name, value1, value2, get_time
|
89
|
+
name, value1, value2, get_time = map(str, line.split(','))
|
90
90
|
|
91
91
|
cursor.execute('INSERT INTO table_name (name,value1,value2,get_time) values(\'{}\',\'{}\',\'{}\',\'{}\');'.format(name,value1,value2,get_time))
|
92
92
|
|