from flask import Flask app = Flask(__name__) @app.route('/index') def index(): return "你好" if __name__ =='__main__': app.run()