Think before you speak, read before you think.

python查看已经安装的模块

方法一:


>>> help('modules')

Please wait a moment while I gather a list of all available modules...

....

Enter any module name to get more help.  Or, type "modules spam" to search

for modules whose descriptions contain the word "spam".

方法二:

>>> import sys

>>> sys.modules

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *