This repository has been archived on 2026-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2022-02-08 19:46:11 +08:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
# -- coding:utf-8 --
|
|
|
|
|
# @Author: markushammered@gmail.com
|
|
|
|
|
# @Development Tool: PyCharm
|
|
|
|
|
# @Create Time: 2022/2/4
|
|
|
|
|
# @File Name: __init__.py.py
|
2022-02-11 17:58:55 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
if not os.path.exists('./db/count.db'):
|
2022-02-12 11:28:33 +08:00
|
|
|
print('未检测到用户计数数据库')
|
2022-02-11 17:58:55 +08:00
|
|
|
import sqlite3
|
|
|
|
|
conn = sqlite3.connect('./db/count.db', check_same_thread=False)
|
|
|
|
|
cursor = conn.cursor()
|
|
|
|
|
cursor.execute('create table ReqCount (name text primary key, times int)')
|
|
|
|
|
conn.commit()
|
|
|
|
|
cursor.close()
|
|
|
|
|
conn.close()
|
|
|
|
|
print('已在./db 目录下创建了count.db数据库')
|