cur.execute('insert into test(d) values (?)', (d,))
cur.execute('select d from test')
data = cur.fetchone()[0]
print(data)
print(type(data))
cur.close()
con.close()
How to convert Python decimal to SQLite numeric?