-2

Taking this command to start local server for example, the command includes -m, what is the meaning of -m in genearl?

python3 -m http.server
Jeffrey Wang
  • 177
  • 1
  • 8

2 Answers2

0

From the documentation, which can be invoked using python3 --help.

-m mod : run library module as a script (terminates option list)

Instead of importing the module in another script (like import <module-name>), you directly run it as a script.

navneethc
  • 1,234
  • 8
  • 17
-1

The -m stands for module-name in Python.

kimilao
  • 31
  • 6