我在Windows 10上并使用Python 3。 尝试获取单词的定义或同义词时遇到此错误。 当我运行此代码时:
from PyDictionary import PyDictionary
dictionary = PyDictionary()
dictionary.meaning("Indent")
我收到此错误:
Error: The Following Error occured: HTTPConnectionPool(host='wordnetweb.princeton.edu', port=80): Max retries exceeded with url: /perl/webwn?s=Indent (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x031849D0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
我做错了什么还是PyDictionary?如果它的PyDictionary我可以使用什么替代模块 得到单词的定义?