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