【发布时间】:2022-12-01 17:23:13
【问题描述】:
from flask import Flask, escape, request
app = Flask(__name__)
run_with_ngrok()
@app.route('/')
def hello():
name = request.args.get("name", "World")
return f'Hello, {escape(name)}!'
当我使用“flask run”从终端运行它时,它不会打印 ngrok 链接。 我是一个虚拟环境,我尝试用 python“文件名”运行它,但没有成功。
【问题讨论】: