mirror of https://github.com/python/cpython
Better quote with single quotes.
This commit is contained in:
parent
6bb7bcf5f7
commit
c5a235bb55
|
@ -51,8 +51,8 @@ and executes a *script* from that file.
|
|||
A second way of starting the interpreter is ``python -c command [arg] ...``,
|
||||
which executes the statement(s) in *command*, analogous to the shell's
|
||||
:option:`-c` option. Since Python statements often contain spaces or other
|
||||
characters that are special to the shell, it is best to quote *command* in its
|
||||
entirety with double quotes.
|
||||
characters that are special to the shell, it is usually advised to quote
|
||||
*command* in its entirety with single quotes.
|
||||
|
||||
Some Python modules are also useful as scripts. These can be invoked using
|
||||
``python -m module [arg] ...``, which executes the source file for *module* as
|
||||
|
|
Loading…
Reference in New Issue