1
我有这样的代码,我不能跑,因为我得到这个错误: “类型错误:‘classobj’对象未标化” 这里是我的代码:的Python“classobj”错误
import cgi
import customerlib
form=cgi.FieldStorage
history = customerlib.find(form["f_name"].value,form["l_name"].value)
print "Content-type: text/html"
print
print """<html>
<head>
<title>Purchase history</title>
</head>
<body>
<h1>Purchase History</h1>"""
print "<p>you have a purchase history of:"
for i in history: "</p>"
print""" <body>
</html>"""
我有这个文件旁边的customerlib文件。任何想法如何解决它?