1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 09:42:07 +02:00
tldr/pages/common/python.md
2018-10-17 18:50:12 +05:30

27 lines
469 B
Markdown

# python
> Python language interpreter.
- 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}}`