Archived
更改包路径
This commit is contained in:
8 files changed
+33
-34
No files matched your search
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user