mirror of
https://gitea.bearcatlog.com/Bryant/chassis
synced 2025-09-06 06:16:02 +08:00
改变文件结构
This commit is contained in:
0
chassis/timer_demo/__init__.py
Normal file
0
chassis/timer_demo/__init__.py
Normal file
13
chassis/timer_demo/timer.py
Normal file
13
chassis/timer_demo/timer.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from rocketry import Rocketry
|
||||
from rocketry.conds import daily
|
||||
|
||||
app = Rocketry()
|
||||
|
||||
|
||||
@app.task(daily)
|
||||
def do_daily():
|
||||
print('日常任务')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run()
|
Reference in New Issue
Block a user