更改包路径

This commit is contained in:
MarkusJoe
2022-02-19 11:27:13 +08:00
parent fcb4c41f8e
commit 8c89f4a024
8 files changed
+33 -34

No files matched your search

+2 -2
View File
@@ -14,11 +14,11 @@ if __name__ == '__main__':
yes_or_no = input('该操作会将数据库初始化输入y继续:')
if yes_or_no == 'y':
try:
os.remove('../../db/count.db')
os.remove('../db/count.db')
except PermissionError:
print('有其他程序正在使用此数据库无法删除')
sys.exit(-1)
conn = sqlite3.connect('../../db/count.db')
conn = sqlite3.connect('../db/count.db')
cursor = conn.cursor()
cursor.execute('create table ReqCount (name text primary key, times integer )')
sys.exit(0)