我正在尝试使用dev_appserver.py在我的Mac上部署我的python文件,并且我一直收到此回复
“google.appengine.api.yaml_errors.EventListenerYAMLError:此处不允许使用映射值: 在“serial_lambda.py”,第8行,第17栏“ 这是我的代码:
#!/usr/bin/env python
import time
import httplib
runs = 5
count = 100
def serial_run():
for x in range(0, runs):
try:
c = httplib.HTTPSConnection("")
json= '{ "key1": ' + str(count) + '}'
c.request("POST", "/"deploy", json)
response = c.getresponse()
data = response.read()
print data
except IOError, e:
print 'Failed to open "%s".'% host
start = time.time()
serial_run()
print "Elapsed Time %s" (time.time() - start)
不确定如何纠正它。有什么建议吗?