feat: 新增技能扩展N16一章相关示例源码

This commit is contained in:
100gle
2023-03-09 09:44:25 +08:00
parent e963474669
commit ed9a0be0bd
5 changed files with 124 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
from rocketry import Rocketry
app = Rocketry(execution="main")
times = 0
@app.task('every 1 second')
def echo():
global times
times += 1
print(f"Running {times} times...")
if __name__ == '__main__':
app.run()