📜  烧瓶重定向到 url - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:32.086000             🧑  作者: Mango

代码示例1
from flask import Flask, redirect

app = Flask(__name__)

@app.route('/')
def index():
    return redirect("http://www.example.com", code=302)

if __name__ == '__main__':
    app.run()