Script:
Run:
Notes:
- The Python features introduced import script, argv (argument variable) parameter variables.
- Start directly at the command line python ex13.py will complain, not the number of parameters.
- You can use repr () function to view the contents of variables.
- Together with the input and argv, argv execution command is input, the user input was input during operation, the script is written as follows: