从终端:
File "index.py", line 41 def main(): ^ SyntaxError: invalid syntax
从 App Engine 开发服务器。我在 Debian 上运行 2.7.3rc2:
msg = 'invalid syntax' offset = 3 print_file_and_line = None text = 'def main():\n'
脚本:
def main(): # << here
run_wsgi_app(application)
if __name__=="__main__":
main()