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
答案 0 :(得分:1)
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)