내부망기준 서버 올리기
#encoding="utf-8"
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template("loveyou.html")
if __name__ == "__main__":
app.run(debug=True, host ="19ㅁ.16ㅁ.0.ㄴ", port = 5800)
'취미로 하는 프로그래밍 > 짭짤한 파이썬' 카테고리의 다른 글
pyinstaller로 python exe 실행파일 만들기 (0) | 2019.04.21 |
---|---|
re-컴파일 (0) | 2018.07.28 |
파이썬 api json 파싱 (0) | 2018.06.16 |
shutil.copytree로 디렉토리 복사하기 (0) | 2018.06.16 |
파이썬 간단한 개행처리 (0) | 2018.06.16 |