Simple hello.py: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
#!/usr/bin/python
<pre>
#!/usr/bin/python
from time import localtime, strftime
 
from time import localtime, strftime
print "Content-type: text/html"
 
print
print "Content-type: text/html"
print "<html><header><title>Python presents: SIMPLE HELLO!!!</title></header><body>"
print
print "<h1>Hello</h1>"
print "<html><header><title>Python presents: SIMPLE HELLO!!!</title></header><body>"
print strftime("%a, %d %b %Y %H:%M:%S", localtime())
print "<h1>Hello</h1>"
print "</body></html>"
print strftime("%a, %d %b %Y %H:%M:%S", localtime())
print "</body></html>"
</pre>

Latest revision as of 00:29, 31 August 2005

#!/usr/bin/python

from time import localtime, strftime

print "Content-type: text/html"
print
print "<html><header><title>Python presents: SIMPLE HELLO!!!</title></header><body>"
print "<h1>Hello</h1>"
print strftime("%a, %d %b %Y %H:%M:%S", localtime())
print "</body></html>"