发布时间:2015-04-25 10:21:28
python中循环取元组中的数据:yuanzu_s = ("one", "two", "three", "four",);print(yuanzu_s[0]);print(len(yuanzu_s));print(len(yuanzu_s[0]));i = 0;for i in yuanzu_s: print(i);......【阅读全文】
发布时间:2015-04-25 10:20:25
测试用CGI,名字为test.py,放在apache的cgi-bin目录下:#!/usr/bin/pythonimport cgidef main(): print "Content-type: text/html\n" form = cgi.FieldStorage() if form.has_key("ServiceCode") and form["ServiceCode"].value != "": &n.........【阅读全文】