如何向浏览器发送 Python CGI 脚本的结果?
# Get data from fields from HTML page first_name = form.getvalue('first_name') last_name = form.getvalue('last_name') send data to Browser print("Content-type:text/html") print print("") print("") print("Hello - Second CGI Program") print("") print("") print(" Hello %s %s " % (first_name, last_name)) print("") print("")
广告