CGI 설정을 테스트하기 위해이 간단한 스크립트를 실행합니다.Python - CGI - (_urandom (16)), 16) WindowsError : [오류 5] 액세스가 거부되었습니다.
#!/usr/bin/python
#import cgi
print "Content-Type: text/plain\n\n"
gender = "female"
def display_vars (first_name, last_name, age):
print (first_name, last_name, age, gender)
def go_display():
gender = "male"
display_vars("John", "Smith", 22)
go_display()
그것은 작동 및 디스플레이 "('John', 'Smith', 22, 'female')"
변화 import cgi
과 실패에 #import cgi
에서 위.
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
(_urandom(16)), 16) WindowsError: [Error 5] Access is denied
http://forums.iis.net/t/1192084.aspx/1 – mata