2015-11-22 21:27:42 +01:00
|
|
|
# Python
|
|
|
|
|
2016-01-12 20:14:57 +01:00
|
|
|
> Python language interpreter.
|
2015-11-22 21:27:42 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Call a Python interactive shell (REPL):
|
2015-11-22 21:27:42 +01:00
|
|
|
|
|
|
|
`python`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Execute script in a given Python file:
|
2015-11-22 21:27:42 +01:00
|
|
|
|
|
|
|
`python {{script.py}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Execute Python language single command:
|
2015-11-22 21:27:42 +01:00
|
|
|
|
|
|
|
`python -c {{command}}`
|
2015-12-09 20:30:14 +01:00
|
|
|
|
2016-01-07 18:31:27 +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}}`
|