30
loading...
This website collects cookies to deliver better user experience
python --version
from flask import Flask, jsonify
app = Flask(__name_)
@app.route('/', methods=['GET'])
def hello_world():
return jsonify(message='hello world')
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
app.run()
from flask import Flask, jsonify, request
app = Flask(__name__)
@app.route('/', methods=['GET'])
def hello_world():
return jsonify(message='hello world')
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
app.run()