When the Python interpreter is learned, the appended parameter information (thereafter) after the script name is shifted (turn into) to become a list of strings and then passed to the ARGV variable in the SYS module in Python. You can access this parameter list by executing the following code:
Import Sysy
Then the requirement is that the element in the list of this parameter has at least one item (at least). When the script name is not passed, and no arguments are passed, the value of the variable sys.agrv[0 in the SYS module will be empty. When the name of the script is specified as "-" means that the input (meaning) is from the standard input, then the sys.argv[0] value will be set to "-". Similarly, when the selected "-C" is used, then sys.argv[0] will be set to (set to) "-C". The selected "-M" specifies Yes, then represents the input source with a module, then the value of Sys.argv[0] is set to the full path form of the module name at cost. After setting the "-C" or "-m" instruction, the subsequent options will no longer be handed to the Python interpreter (not consumed by Python interpreter ' s), but remain in the (left in) sys.argv for "-C" Or "-M" point to the command or module to handle.
Invoking the interpreter Argument passing