Python--help

Source: Internet
Author: User
Tags terminates

Python--help
Usage:python [option] ... [-C cmd |-M mod | file |-] [Arg] ...
Options and arguments (and corresponding environment variables):
-b:don ' t write. Py[co] files on import; Also pythondontwritebytecode=x
-C Cmd:program passed in As String (terminates option list)
-d:debug output from parser; Also pythondebug=x
-e:ignore python* Environment variables (such as PYTHONPATH)
-h:print this help message and exit (also--help)
-i:inspect interactively after running script; Forces a prompt even
If stdin does not appear to be a terminal; Also pythoninspect=x
-M Mod:run Library module as a script (terminates option list)
-o:optimize generated bytecode slightly; Also pythonoptimize=x
-oo:remove doc-strings In addition to The-o optimizations
-r:use a pseudo-random salt to make hash () values of various types be
Unpredictable between separate invocations of the interpreter, as
A defense against Denial-of-service attacks
-Q arg:division Options:-qold (Default),-qwarn,-qwarnall,-qnew
-s:don ' t add User site Directory to Sys.path; Also Pythonnousersite
-s:don ' t imply ' import site ' on initialization
-t:issue Warnings about inconsistent tab usage (-tt:issue errors)
-u:unbuffered binary stdout and stderr; Also pythonunbuffered=x
See Mans page for details on internal buffering relating to '-U '
-v:verbose (trace import statements); Also pythonverbose=x
Can is supplied multiple times to increase verbosity
-v:print the Python version number and exit (also--version)
-W arg:warning control; ARG is Action:message:category:module:lineno
Also Pythonwarnings=arg
-x:skip first line of source, allowing use of Non-unix forms of #!cmd
-3:warn about Python 3.x incompatibilities that 2to3 cannot trivially fix
File:program read from script file
-: Program read from stdin (default; interactive mode if a TTY)
Arg ...: Arguments passed to program in Sys.argv[1:]

Other environment variables:
Pythonstartup:file executed on interactive startup (no default)
PYTHONPATH: '; ' -separated List of directories prefixed to the
Default module search path. The result is Sys.path.
Pythonhome:alternate <prefix> directory (or <prefix>;<exec_prefix>).
The default module search path uses <prefix>\lib.
Pythoncaseok:ignore case in ' Import ' statements (Windows).
Pythonioencoding:encoding[:errors] used for Stdin/stdout/stderr.
Pythonhashseed:if This variable are set to ' random ', the effect is the same
As specifying THE-R option:a random value is used to seed the hashes of
str, Bytes and datetime objects. It can also is set to an integer
The range [0,4294967295] to get hashes values with a predictable seed.

C:\windows\system32>

Python--help

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.