From 5ddfda90f263dec9848f7faa31b5bb1ee17db3a8 Mon Sep 17 00:00:00 2001 From: Michal Date: Wed, 15 Apr 2020 18:12:27 +0200 Subject: [PATCH] create python.md initial --- pages.pl/common/python.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages.pl/common/python.md diff --git a/pages.pl/common/python.md b/pages.pl/common/python.md new file mode 100644 index 0000000000..5823f85125 --- /dev/null +++ b/pages.pl/common/python.md @@ -0,0 +1,28 @@ +# python + +> Python language interpreter. +> More information: . + +- 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}}`