V2.0.0-alpha3 2025-07-15

This commit is contained in:
2025-07-15 12:00:59 +08:00
parent 98b03b67d1
commit 7b4cef5d35
8 changed files with 927 additions and 694 deletions

View File

@@ -17,7 +17,12 @@ from typing import Optional
# 数据库类
class Database:
def __init__(self, db_path: str = "data.db"):
# Database 初始化方法
def __init__(
self, # self 用于引用类的实例
db_path: str = "data.db" # db_path 数据库文件路径,默认为 data.db
):
self.db_path = db_path
async def init_db(self):