mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 16:26:04 +02:00
create python.md
initial
This commit is contained in:
parent
fad4cbfaff
commit
5ddfda90f2
1 changed files with 28 additions and 0 deletions
28
pages.pl/common/python.md
Normal file
28
pages.pl/common/python.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# python
|
||||
|
||||
> Python language interpreter.
|
||||
> More information: <https://www.python.org>.
|
||||
|
||||
- Call a Python interactive shell (REPL):
|
||||
|
||||
`python`
|
||||
|
||||
- Execute script in a given Python file:
|
||||
|
||||
`python {{script.py}}`
|
||||
|
||||
- Execute script as part of an interactive shell:
|
||||
|
||||
`python -i {{script.py}}`
|
||||
|
||||
- Execute a Python expression:
|
||||
|
||||
`python -c "{{expression}}"`
|
||||
|
||||
- Run library module as a script (terminates option list):
|
||||
|
||||
`python -m {{module}} {{arguments}}`
|
||||
|
||||
- Interactively debug a Python script:
|
||||
|
||||
`python -m pdb {{script.py}}`
|
Loading…
Add table
Reference in a new issue