python -m

Python的-m参数 1、在命令行中启动Python脚本的时候,经常会用到-m参数,那么-m起了什么作用呢?   2、先看看 python --help 给出的信息: run library module as a script (terminates option list) 意思是将库中的python模块用作脚本去运行。   3、常用例子 python -m SimpleHTTPServer
相关文章
相关标签/搜索