Python: Builtin Help
help() function
in terminal, start Python by python
, then type help()
. Type exit
to exit.
![python help 2022-06-27 Pmz6G](i/python_help_2022-06-27_Pmz6G.png)
Windows, Python Doc in .CHM Format
On Microsoft Windows, python comes with help file in .CHM
format.
you can open it at, example:
c:/Python39/Doc/python391.chm
![python help chm 2022-06-27](i/python_help_chm_2022-06-27.png)
pydoc
pydoc
is a command-line tool. It is installed on linux with python by default.
(not installed on Microsoft Windows by default)
In terminal type pydoc
to get started. It'll print a summary of how to use it.
For python 3, type pydoc3
.
Type f to page down, b to page up, q to exit.
For example, type:
pydoc while
- Language keyword, function.
pydoc dict
- Language objects.
pydoc re
- Module/package doc.
![pydoc 2019-03-12 d8hg2](i/pydoc_2019-03-12_d8hg2.png)