1 Star 0 Fork 0

敏哥/flask-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
1hellowold.py 370 Bytes
一键复制 编辑 原始数据 按行查看 历史
敏哥 提交于 5个月前 . 第一个案例
from flask import Flask
app = Flask(__name__)
SERVER_PORT=9999
@app.route('/')
def index():
return '<h1>Hello Flask!</h1>'
if __name__ == '__main__':
app.run(host='0.0.0.0', port=SERVER_PORT, debug=True)
# export FLASK_APP=1hellowold.py # 指定启动项目
# export FLASK_DEBUG=1 # 启动调试模式
# flask run --host=0.0.0.0 --port=9999 # 启动项目
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/PatrickW/flask-web.git
git@gitee.com:PatrickW/flask-web.git
PatrickW
flask-web
flask-web
master

搜索帮助