tldr/pages/common/python.md

20 lines
326 B
Markdown
Raw Normal View History

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