from flask import Flask, url_for
app = Flask(__name__)
@app.route("/url")
def get_url():
return url_for("static", filename="css/style.css")
if __name__ == '__main__':
app.run(debug=True)
python-flask导入静态文件
最新推荐文章于 2024-07-14 23:32:41 发布