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
相關文章
相關標籤/搜索