1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 09:26:01 +02:00
tldr/pages/common/python.md

20 lines
321 B
Markdown
Raw Normal View History

2015-11-22 22:27:42 +02:00
# Python
2016-01-07 21:12:07 -08:00
> Python language interpreter
2015-11-22 22:27:42 +02:00
- Call a Python interactive shell (REPL)
`python`
- Execute script in a given Python file
`python {{script.py}}`
- Execute Python language single command
`python -c {{command}}`
2015-12-09 20:30:14 +01:00
2015-12-09 21:28:39 +01:00
- Run library module as a script (terminates option list)
2015-12-09 20:30:14 +01:00
2015-12-09 21:28:39 +01:00
`python -m {{module}} {{arguments}}`