docs: 2026-04-21作业
This commit is contained in:
13
2026-04-21/2026-04-21_hw_1.py
Normal file
13
2026-04-21/2026-04-21_hw_1.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from flask import *
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
@app.route("/index/")
|
||||
def index():
|
||||
info = [1, 2, 3, 4, 5]
|
||||
return render_template("2026-04-21_hw_1.html", info=info)
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
Reference in New Issue
Block a user