Html 无法在web浏览器中查看响应正文预览
Iam在python服务器ip:10.1.0.1中运行这些 在我的firefox中,我输入了,但在浏览器中看不到任何东西 My entry_template.html文件:Html 无法在web浏览器中查看响应正文预览,html,python-2.7,web-services,python-requests,python-server-pages,Html,Python 2.7,Web Services,Python Requests,Python Server Pages,Iam在python服务器ip:10.1.0.1中运行这些 在我的firefox中,我输入了,但在浏览器中看不到任何东西 My entry_template.html文件: import codecs def do_GET_Index(self): self.set_HTTP_headers(200) HtmlFile3 = codecs.open('server/entry_template.html', 'r','utf-8') html_response =
import codecs
def do_GET_Index(self):
self.set_HTTP_headers(200)
HtmlFile3 = codecs.open('server/entry_template.html', 'r','utf-8')
html_response = HtmlFile3.read()
self.wfile.write(html_reponse)
页面标题
这是一个标题
这是一段
提前感谢
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>