Python Whois模块E

2024-07-08 10:12:26 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在WindowsPowerShell上运行以下代码,但它给出了一个错误“Module is not callable”(模块不可调用)

import whois
w = whois.whois('yahoo.com')

print w

我做错什么了?我甚至还安装了whois模块。还是没什么区别。在

请帮忙。在


Tags: 模块代码importcomis错误notwhois
1条回答
网友
1楼 · 发布于 2024-07-08 10:12:26

似乎whois documentation已过期;请将行改为

w = whois.query('yahoo.com')

您可以在交互式终端中执行help(whois)(在import whois之后)以查看更多最新文档。在

相关问题 更多 >

    热门问题