启动服务(图片来源网络,侵删) 绑定host flask run --host=0.0.0.0 调试模式(图片来源网络,侵删) flask --app hello run --debug 路由 创建路由 1. 装饰器 @app.route('/one',methods=['GET','POST']) 2. add_URL_rule app.add_url_rule('/one',view_funC=one)