cx = sqlite3.connect("c:/数据库地址") # 打开数据库
cu = cx.cursor()
# delete the row
cu.execute("delete from user where username=='majuan'")
# Save (commit) the changes
cx.commit() # 提交
cx.close() # 关闭
转载于:https://www.cnblogs.com/mmbbflyer/p/7729056.html
cx = sqlite3.connect("c:/数据库地址") # 打开数据库
cu = cx.cursor()
# delete the row
cu.execute("delete from user where username=='majuan'")
# Save (commit) the changes
cx.commit() # 提交
cx.close() # 关闭
转载于:https://www.cnblogs.com/mmbbflyer/p/7729056.html