-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
系统 ubuntu22.04
./youdao_post.py "test"
python3.5
Traceback (most recent call last):
File "./youdao_post.py", line 79, in
for res in obj1['translateResult'][0]:
KeyError: 'translateResult'
python3.10报错
Traceback (most recent call last):
File "~/gd_plugin/youdao/./youdao_post.py", line 74, in
obj1 = json.loads(json1,encoding='utf-8')
File "/usr/lib/python3.10/json/init.py", line 359, in loads
return cls(**kw).decode(s)
TypeError: JSONDecoder.init() got an unexpected keyword argument 'encoding'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels