from flask import Flask
from flask import redirect

app=Flask(__name__)

@app.route('/')
def index():
    return redirect('http://www.baidu.com')

if __name__=='__main__':
    app.run(debug=True)
    # http://127.0.0.1:5000/