最基本的hello world
#!/usr/bin/python
print "Content-type: text/html"
print "hello world"
聪明一些的hello world
#!/usr/bin/python
import cgi
print "Content-type: text/html"
form = cgi.FieldStorage()
to = form['to'].value
print "hello " + to
最基本的hello world
#!/usr/bin/python
print "Content-type: text/html"
print "hello world"
聪明一些的hello world
#!/usr/bin/python
import cgi
print "Content-type: text/html"
form = cgi.FieldStorage()
to = form['to'].value
print "hello " + to