This commit is contained in:
27942
2026-01-04 14:36:53 +08:00
parent 9e20e68c09
commit bf5fc79fb9
4 changed files with 95 additions and 533 deletions

View File

@@ -1,7 +1,9 @@
from pathlib import Path
from peewee import *
# 连接到 SQLite 数据库,如果文件不存在会自动创建
db = SqliteDatabase(r'database.db')
db = SqliteDatabase(fr'{Path(__file__).parent}/database.db')
import pymysql