摘要:
# -*- coding: utf-8 -*- from flask import Flask, request, url_for app = Flask(__name__) @app.route("/") def hello(): return "Hell2323o23 World!" @app.route('/user', methods=['POST']) #默认是get方式... 阅读全文
摘要:
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" if __name__ == "__main__": app.debug = True #开启debug模式 每次修改代码不用重新启动py文件app.run()#访问localhost:5... 阅读全文