直接返回頁面的源代碼
我用
class hello: ? ? ? ?
? ? def GET(self,name):
? ? ? ? return open(r'index.htm','r').read()
這個函數時,在瀏覽器直接顯示的是index.htm的源代碼,請問這是為什么,怎么解決呢?
我用
class hello: ? ? ? ?
? ? def GET(self,name):
? ? ? ? return open(r'index.htm','r').read()
這個函數時,在瀏覽器直接顯示的是index.htm的源代碼,請問這是為什么,怎么解決呢?
2017-08-24
舉報
2017-08-29
文件格式是html嗎,還是txt