import sqlite3con=sqlite3.connect('test1.db')try:con.execute('create table people (name,phone,city)')except:passcon.execute('insert into people values ("toby","555-1212","Boston")')con.commit()cur=con.execute('select * from people')print(cur.__next__())然后我想把整个表test1.db都删除(而不是只删除其中的记录),应该怎么写?
- 1 回答
- 0 关注
- 6061 浏览
添加回答
举报
0/150
提交
取消