简体   繁体   中英

Python script page is showing blank?

I have completely unknown in Python. I have no idea about this script. Now i am just starting Python code in my server.

I am getting Blank page of my code

Please check my code Below:

#!/usr/local/bin/python
print "Content-type: text/html"
print "Hello, Python!"

After the HTTP header needs to be an blank line and you can use HTML instead of plain text.

#!/usr/local/bin/python
print "Content-type: text/html\n"
<html>
<body>
<p>Hello, Python!</p>
</body>
</html>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM