tldr/pages/common/python.md

328 B

Python

Python language interpeter

  • 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}}

  • Execute a Python module (SimpleHTTPServer, json.tool, etc)

python -m {{moduleName}} {{parameters}}