这是代码:
temp=[[aberturas],[fechamentos], [highs], [lows], [volumes], [medias], [data_str]]
conexao=sqlite3.connect("negociacao.db")
conexao.row_factory=sqlite3.Row
cursor=conexao.cursor()
cursor.execute('''
create table if not exists negociacao(
id integer primary key autoincrement,
Open float,
Close float,
High float,
Low float,
Volume float,
Media float,
Data date)''')
cursor.executemany('''
insert into negociacao(Open,Close,High,Low,Volume,Media,Data)values(?,?,?,?,?,?,?)''',(temp,))
conexao.commit()
cursor.close()
conexao.close()
我收到此错误:
Traceback (most recent call last):
File "C:\Users\laura.correia\Downloads\Microsoft.SkypeApp_kzf8qxf38zg5c!App\All\API_Negociacao.py", line 179, in <module>
insert into negociacao(Open,Close,High,Low,Volume,Media,Data)values(?,?,?,?,?,?,?)''',(temp,))
InterfaceError: Error binding parameter 0 - probably unsupported type