只需要匯入render_template庫,並且在函式返回時改成對應的方法即可。 不過這裡要注意,test.html必須儲存在工程目錄與下template檔案下,否則會報錯。( ...
確定! 回上一頁