๋ฐ์ํ
์ค์น
pip install flask
hello_world.py
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run()
์์ ๊ฐ์ด ์์ฑํ hello_world.py ์คํ ํ 127.0.0.1:5000๋ก ๋ค์ด๋ฉด Hello World! ๋ผ๊ณ ๋ฌ๋ค :)
๋ฐ์ํ
'Python > Basic' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[pandas] datetime ์ผ๋ก type ๋ณ๊ฒฝํ๊ธฐ (0) | 2020.02.17 |
---|---|
MySQL ์ฐ๋ํ๊ธฐ(DB ํด๋์ค ์์ฑ) (0) | 2019.08.05 |
[Python] Python ๋ฒ์ ํ์ธ (0) | 2019.07.16 |
ํ์ด์ฌ ์ฝ๋ฉ ๋์ฅ: 12.1 ๋์ ๋๋ฆฌ ๋ง๋ค๊ธฐ (0) | 2019.06.27 |
Anaconda Update (0) | 2019.06.27 |