pip install Flask
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
return "Hello, World!"
@app.route('/test')
def hello2():
return "Hello, TEST!"
if __name__ == '__main__':
app.run()
Recommended Posts