def api_run(): app.run(debug=True)
def main(): s = Schedule() s.run() app.run()
def main(): s = Schedule() s.run() app.run(host='0.0.0.0', port=5000)
def main(): s = Schedule() s.run() # 启动代理池 app.run() # 启动代理池对外API接口
from Api.api import app from Api.views import dummy_view, user_views, category_views, recipe_views if __name__ == '__main__': app.run(debug=True)