flask简单的路由分发
from flask import Flask, request app = Flask(__name__) @app.route('/hello') def index(): data = request.args.get('data') return 'hello world: ' + data if __name__ == '__main__': app.run()
访问方法
flask简单的路由分发
from flask import Flask, request app = Flask(__name__) @app.route('/hello') def index(): data = request.args.get('data') return 'hello world: ' + data if __name__ == '__main__': app.run()
访问方法