【发布时间】:2021-05-20 15:09:23
【问题描述】:
这是我的数据库的代码
# database code
with sqlite3.connect("password_vault.db") as db:
cursor = db.cursor()
# creates a table for masterpassword if one doesn't already exist
cursor.execute("""
CREATE TABLE IF NOT EXISTS masterpassword(
id INTEGER PRIMARY KEY,
password TEXT NOT NULL,
email TEXT NOT NULL);
""")
我想将此 TKinter python 代码中的条目存储在电子邮件中,我该怎么做?
# user input of email
txt3 = Entry(window, width=20)
txt3.pack()
txt3.focus()
【问题讨论】:
标签: python database sqlite tkinter