web.py中template.py文件報錯

    最近學習web.py的時候,網頁報錯template.py的第1017行(可能是1015),查找了各種資料後,發現需要改這個文件裏的兩行代碼     第31行加上 from io import open 第1016行改爲 return Template(open(path, encoding='utf-8').read(), filename=path, **self._keywords)
相關文章
相關標籤/搜索