conn = sqlite3.connect('/tmp/example')
c = conn.cursor()
# Create table
c.execute('''create table stocks(date text, trans text, symbol text, qty real, price real)''')
# Insert a row of data
c.execute("""insert into stocks values ('2006-01-05','BUY','RHAT',100,35.14)""")
# Save (commit) the changes
conn.commit()
# We can also close the cursor if we are done with it
c.close()
这里有一个python3.x兼容包的列表:http://pypi.python.org/pypi?:action=browse&c=533&show=all
我只能找到oursql和{a3}
你在用什么分机?对于
sqlite3
(以及与DB-API 2.0兼容的任何其他扩展),您可以使用类似于this的东西:顺便说一句,Python中没有
->
相关问题 更多 >
编程相关推荐