qq_30612089
2022-05-10 16:00
采纳率: 71.4%
浏览 19

为什么无法这样给sqlite传参

img


login_id = self.getusername.get()
print(login_id)

    conn = sqlite3.connect("D:\\data.db")
    cur = conn.execute("create table if not exists "+login_id+"(UID varchar(128) primary key,phone varchar(128), QQ varchar(128),address varchar(125));")
    hel[1].commit()
    hel[1].close()

2条回答 默认 最新

相关推荐 更多相似问题