00 基本框架

jhchena發表於2024-09-28

基本框架

from flask import Flask, render_template
from datetime import datetime

app = Flask(__name__)


# 訪問地址:http://127.0.0.1:9999/home
@app.route("/home")
def home():

    return render_template(
        "ok",
       
    )


if __name__ == "__main__":
    app.run(host="127.0.0.1", port=99999)

相關文章