1
私はこのコードを持っていると私はこのエラーを取得するので、私はそれを実行することができませんでしたが: 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>"""
: 、ここでは私のコードである「例外TypeError 『classobj』オブジェクトは、添字化されていません」
私はこのファイルの横にcustomerlibファイルを持っています。どのようにそれを修正するための任意のアイデア?