1
Çok kafa karıştırıcı. Etrafında arandı, ancak yararlı olan herhangi bir yardım bulamadı. şeklinde Dosya "/Users/Andrew/Desktop/password.py", satır 2, = cgi.Fieldstorage() AttributeError: Ben hatayıAttributeError: 'module' nesnesi 'Fieldstorage' özniteliğine sahip değil
traceback (son En son arama) almak 'modülü' nesne hiçbir özellik 'Fieldstorage'
import cgi
form = cgi.Fieldstorage()
print """Content-type: text/html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head>
<title>Lab 10</title>
</head><body>
"""
password = form.getvalue("password")
if password=="12345":
print "<p>Password correct.</p>"
else:
print "<p>Sorry, try again.</p>"
print "</body>"
print "</html>"
Teşekkür ederim, elimde çaylak hatası – aaandrewp