Python(2) Python 模块帮助文档查询

     

方法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/

在浏览器中访问

猜你喜欢

转载自blog.csdn.net/BoRenLiang/article/details/78215425