gpt4 book ai didi

python - 获取可用模块

转载 作者:IT老高 更新时间:2023-10-28 20:25:30 24 4
gpt4 key购买 nike

使用 PHP 你有 phpinfo()其中列出了已安装的模块,然后从那里查找它们的作用。

有没有办法查看安装了哪些包/模块来导入?

最佳答案

在解释器中输入help()

然后

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics". Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".

help> modules

关于python - 获取可用模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3952513/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com