代码拉取完成,页面将自动刷新
# coding: utf-8
from dophon import boot
import threading
import schedule
s=schedule.Scheduler()
def sche():
s.every(1).seconds.do(print,(666,))
def start():
import time
while True:
s.run_pending()
time.sleep(1)
from dophon.annotation import *
class BeanConfigs(BeanConfig):
@bean()
def call_beans(self):
return bean_class()
class bean_class():
def call(self):
print('call')
with BeanConfigs() as b:
pass
# 启动服务器
def run():
import threading
# sche()
# threading.Thread(target=start).start()
boot.bootstrap_app()
# 启动服务器
# boot.run_app_ssl()`
boot.run_app()
run()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。