方法1: 如果只查询内置模块,可以在IDLE中打开的情况下按F1,打开CHM帮助文档或者输入需要查询的包,如下:
1
2
|
>>>
import
string
>>>
help
(string)
|
方法2:
打开cmd
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Terry>python -m pydoc -p 4567 #-m 是模块 -p 是端口 pydoc python文档
pydoc server ready at http://localhost:4567/
在浏览器中访问