特林編譯下面的代碼:肥皂水的Python語法錯誤:無效的語法
from suds.client import Client
import time
url = 'https://webapi.allegro.pl/service.php?wsdl'
client = Client(url)
外殼的輸出是:
Traceback (most recent call last):
File "C:/Users/Kornelcia/Desktop/Python/api.py", line 3, in <module>
from suds.client import Client
File "C:\Users\Kornelcia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\suds\client.py", line 242
except Exception, e:
^
SyntaxError: invalid syntax
我怎麼可能使它工作?
看起來像'suds'不支持Python 3.x,所以你必須使用['suds-py3'](https://pypi.python.org/pypi/suds-py3) – CoryKramer