mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 02:01:19 +00:00
Update cheatsheets
This commit is contained in:
21
pydoc
Normal file
21
pydoc
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pydoc
|
||||
|
||||
> Display offline Python documentation.
|
||||
> More information: <https://docs.python.org/3/library/pydoc.html>.
|
||||
|
||||
- Print documentation on a subject (Python keyword, topic, function, module, package, etc.):
|
||||
|
||||
`pydoc {{subject}}`
|
||||
|
||||
- Start an HTTP server on an arbitrary unused port and open a [b]rowser to see the documentation:
|
||||
|
||||
`pydoc -b`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pydoc`
|
||||
Reference in New Issue
Block a user