--Python micro web framework --Minimal functions provided as standard --For a full stack framework, like Django --Reference -Comparison of 4 Python Web Frameworks
about me
3 days
looks fun
** ①Flask installation **
pip install Flask
** ② Create `` `hello.py``` in your favorite folder ** ** ③ Paste the following **
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return "Hello World!"
if __name__ == '__main__':
app.run()
** ④ Execution **
python hello.py
** ⑤ Access http://127.0.0.1:5000/ **
Recommended Posts