Flask學習筆記之——Flask基本內容

Flask運行 flask依賴wsgi,實現wsgi的模塊:wsgiref,werkzeug,uwsgi 實例化Flask對象,裏面是有參數的 app = Flask(__name__,template_folder='templates',static_url_path='/xxxxxx') 兩種添加路由的方式 方式一: @app.route('/xxxx') # @decorator
相關文章
相關標籤/搜索