我想要创建很多sql表吗?我想这是为了爱枫:
import sqlite3
conn = sqlite3.connect(":memory:")
c = conn.cursor()
for x in range(0, 100):
c.execute('''CREATE TABLE tableX (id real, name text,price real)''')X在范围内:X: 0,1,.....,100
发布于 2014-09-25 11:42:30
import sqlite3
conn = sqlite3.connect(":memory:")
c = conn.cursor()
for x in range(0, 100):
c.execute('''CREATE TABLE table%s (id real, name text,price real)'''%x)https://stackoverflow.com/questions/26037621
复制相似问题