add chinese for pages.cn/linux/add-apt-respository.md
This commit is contained in:
27
pages.cn/common/python.md
Normal file
27
pages.cn/common/python.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# python
|
||||
|
||||
> Python language interpreter.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user