Simple hello.py

From Wildsong
Revision as of 00:29, 31 August 2005 by Brian Wilson (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
#!/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>"