增加对公历,农历日期和时间的认知,引入zhDateTime库

This commit is contained in:
2024-09-25 23:48:47 +08:00
parent c83fe2f92a
commit 6a8e92d208
3 changed files with 33 additions and 10 deletions

14
models.py Normal file
View File

@ -0,0 +1,14 @@
from .util import *
class MarshoContext:
def __init__(self):
self.contents = []
def append(self, content):
self.contents.append(content)
def reset(self):
self.contents.clear()
def build(self):
spell = get_default_spell()
return [spell] + self.contents