from flask import Flask app = Flask(__name__) @app.route('/index') def
hello_world(): return "HelloWorld" if __name__ == "__main__": app.run()
#使用http://127.0.0.1:5000/index访问