docs: 2026-04-28作业
This commit is contained in:
13
2026-04-28/2026-04-28_hw_2.py
Normal file
13
2026-04-28/2026-04-28_hw_2.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from flask import *
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
||||
@app.route('/')
|
||||
@app.route('/static-file')
|
||||
def load_staticfile():
|
||||
return render_template('hw_t2.html')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(port=80)
|
||||
Reference in New Issue
Block a user