我正在尝试执行基本的PyDictionary
Python 代码,但即使我已连接到 Internet,我也会收到连接错误。
这是我的代码:
from PyDictionary import PyDictionary
dictionary=PyDictionary()
print (dictionary.meaning("Diligent"))
Error: The Following Error occured: HTTPConnectionPool(host='wordnetweb.princeton.edu', port=80): Max retries exceeded with url: /perl/webwn?s=Diligent (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000000000A207CC0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))None