Google app engine 属性错误:';资源';对象没有属性';列表';在谷歌应用程序引擎中

Google app engine 属性错误:';资源';对象没有属性';列表';在谷歌应用程序引擎中,google-app-engine,google-cloud-platform,Google App Engine,Google Cloud Platform,当我试图在python脚本中使用AppEngine管理API时,它抛出了一个错误 我尝试了来自 我得到下面的错误 Traceback (most recent call last): File "test.py", line 53, in <module> main() File "test.py", line 21, in main response = service.apps().list().execute() AttributeError: 'Res

当我试图在python脚本中使用AppEngine管理API时,它抛出了一个错误

我尝试了来自

我得到下面的错误

Traceback (most recent call last):
  File "test.py", line 53, in <module>
    main()
  File "test.py", line 21, in main
    response = service.apps().list().execute()
AttributeError: 'Resource' object has no attribute 'list'
回溯(最近一次呼叫最后一次):
文件“test.py”,第53行,在
main()
文件“test.py”,第21行,在main中
响应=service.apps().list().execute()
AttributeError:“资源”对象没有属性“列表”

Python版本不匹配。这段代码是为Python2编写的,您正在尝试使用Python3。在哪里可以找到Python3版本代码我不知道,我没有编写这段代码。请与作者联系。Python版本不匹配。这段代码是为Python2编写的,您正在尝试使用Python3。在哪里可以找到Python3版本代码我不知道,我没有编写这段代码。与作者核实。
Traceback (most recent call last):
  File "test.py", line 53, in <module>
    main()
  File "test.py", line 21, in main
    response = service.apps().list().execute()
AttributeError: 'Resource' object has no attribute 'list'