python查看指令的方法python -h
python查看指令的方法python -h
进入cmd
输入
python -h
C:\Users\Administrator>python -h
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Options and arguments (and corresponding environment variables):
-b : issue warnings about str(bytes_instance), str(bytearray_instance)and comparing bytes/bytearray with str. (-bb: issue errors)
-B : don't write .pyc 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 evenif stdin does not appear to be a terminal; also PYTHONINSPECT=x
-I : isolate Python from the user's environment (implies -E and -s)
-m mod : run library module as a script (terminates option list)
-O : remove assert and __debug__-dependent statements; add .opt-1 before.pyc extension; also PYTHONOPTIMIZE=x
-OO : do -O changes and also discard docstrings; add .opt-2 before.pyc extension
-q : don't print version and copyright messages on interactive startup
-s : don't add user site directory to sys.path; also PYTHONNOUSERSITE
-S : don't imply 'import site' on initialization
-u : force the stdout and stderr streams to be unbuffered;this option has no effect on stdin; also PYTHONUNBUFFERED=x
-v : verbose (trace import statements); also PYTHONVERBOSE=xcan be supplied multiple times to increase verbosity
-V : print the Python version number and exit (also --version)when given twice, print more information about the build
-W arg : warning control; arg is action:message:category:module:linenoalso PYTHONWARNINGS=arg
-x : skip first line of source, allowing use of non-Unix forms of #!cmd
-X opt : set implementation-specific option
--check-hash-based-pycs always|default|never:control how Python invalidates hash-based .pyc files
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 thedefault module search path. The result is sys.path.
PYTHONHOME : alternate <prefix> directory (or <prefix>;<exec_prefix>).The default module search path uses <prefix>\python{major}{minor}.
PYTHONCASEOK : ignore case in 'import' statements (Windows).
PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr.
PYTHONFAULTHANDLER: dump the Python traceback on fatal errors.
PYTHONHASHSEED: if this variable is set to 'random', a random value is usedto seed the hashes of str and bytes objects. It can also be set to aninteger in the range [0,4294967295] to get hash values with apredictable seed.
PYTHONMALLOC: set the Python memory allocators and/or install debug hookson Python memory allocators. Use PYTHONMALLOC=debug to install debughooks.
PYTHONCOERCECLOCALE: if this variable is set to 0, it disables the localecoercion behavior. Use PYTHONCOERCECLOCALE=warn to request display oflocale coercion and locale compatibility warnings on stderr.
PYTHONBREAKPOINT: if this variable is set to 0, it disables the defaultdebugger. It can be set to the callable of your debugger of choice.
PYTHONDEVMODE: enable the development mode.
PYTHONPYCACHEPREFIX: root directory for bytecode cache (pyc) files.C:\Users\Administrator>
python查看指令的方法python -h相关推荐
- python查看数据类型的方法_pycharm下查看python的变量类型和变量内容的方法
pycharm下查看python的变量类型和变量内容的方法 用过Matlab的同学基本都知道,程序里面的变量内容可以很方便的查看到,但python确没这么方便,对于做数据处理的很不方便,其实不是没有这 ...
- python 如何查看模块所有方法-Python查看模块函数,查看函数方法的详细信息
Python查看方法的详情 1.通用的帮助函数help() 使用help()函数来查看函数的帮助信息. 如: 1 importrequests2 3 help(requests) 会有类似如下输出: ...
- python查看某个函数方法具体有哪些参数怎么做
一.目标确立 我想知道python的某个函数方法具体有哪些参数 二.实现步骤 (1)在jupyter notebook中查看某个函数方法具体有哪些参数: 调用help()函数,如:我想知道pandas ...
- python查看excel编码格式_[Python]实现处理读写xlsx xls excel文件格式(含中文处理方法)...
最近有个需求要处理excel 格式的数据,数据量比较大.用传统的语言似乎不太好处理,于是改用python实现,这里记录一下实现过程. 首先,科普一下xlsx xls的excel文件区别是什么. xls ...
- python查看库函数和方法_查看python库函数和三方库函数文档
原博文 2020-03-08 16:08 − 1.打开终端,输入python -m pydoc -p 0,(0是让系统自动分配端口,也可以自己指定端口)会返回Server ready at http: ...
- python selenium定位元素方法,python + selenium 练习篇 - 定位元素的方法
1.利用ID定位元素(能直接通过ID来定位的元素比较少) # coding=utf-8 from selenium import webdriver driver = webdriver.Chrome ...
- python读取word的方法,Python读取Word(.docx)正文信息的方法
Python读取Word(.docx)正文信息的方法 本文介绍用Python简单读取*.docx文件信息,一些python-word库就是对这种方法的扩展. 介绍分两部分: Word(*.docx)文 ...
- python 查看当前目录_「Python」打包分发工具setuptools学习
❝ setuptools是python标准的打包分发工具,它可以将我们编写的python项目打包安装,这样其他同事就可以像调用标准库或python第三方库那样直接使用:也可以将项目上传到Pypi供更多 ...
- Python Gitlab Api 使用方法 - python
文章来源:嗨学网 敏而好学论坛www.piaodoo.com 欢迎大家相互学习 简述 公司使用gitlab 来托管代码,日常代码merge request 以及其他管理是交给测试,鉴于操作需经常打开网 ...
最新文章
- 如何使用VSCode汉化插件(中文)
- ChemDraw在苹果电脑上能不能用
- vue导航栏跳转路由
- define() vs const 该如何选择?
- BUUCTF-Reverse:reverse3
- 十大排序算法之堆排序
- 【转】ABP源码分析二十六:核心框架中的一些其他功能
- 1元解锁 | Python万能代码模板 |10大必学实用技巧
- java菜鸟教程+视频笔记
- CentOS 搭建 高可用 Nginx 集群(keepalived)
- 闪瞎眼低效贪吃蛇:数组实现
- FLink学习笔记:12-Flink 的Table API的常用操作
- 软件行业如何开始创业
- VO、DTO、BO、QO、DO 如何使用,在那一层使用,一张图告诉你;别再纠结命名规则啦,我来告诉你
- LeetCode - 807. 保持城市天际线 - Java
- 综合案例:新浪微博导航栏,产品模块,快报模块
- 【WPS配置mathtype】
- python生成一笔画_python实现欧拉路径查找算法与微信小游戏《一笔画完》(一)...
- bistuacm 2019年第⑦场新生训练赛题解
- 商务汇报PPT制作的七堂课-第六课:数据美化
热门文章
- Flask详解(下篇)
- 移动机器人建图与导航代码实现——1.Hector SLAM
- 堆排序(Heapsort)
- HTML(XHTML)基础知识(三)——【image】
- 解决mysql分页数据错乱问题
- 2018.3.12 Leecode习题 给定一个整数数列,找出其中和为特定值的那两个数。
- nginx上传目录配置,禁止执行权限
- java 导出文件上传模板,上传Excel文件批量导入数据
- 由System.getProperty(user.dir)引发的联想
- android内核源码下载和编译