mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 05:15:22 +02:00
python: new examples (#2457)
This commit is contained in:
parent
aaedbfef0b
commit
2063dfdde3
1 changed files with 10 additions and 2 deletions
|
@ -10,10 +10,18 @@
|
|||
|
||||
`python {{script.py}}`
|
||||
|
||||
- Execute Python language single command:
|
||||
- Execute script as part of an interactive shell:
|
||||
|
||||
`python -c {{command}}`
|
||||
`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