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文件。任何想法如何解決它?