argv 和 input() 的区别,运行时在命令行输入参数 or 运行后用键盘输入参数

发布时间 2023-12-27 17:12:05作者: 中年二班

What’s the difference between argv and input() ?

The difference has to do with where the user is required to give input.

If they give your script inputs on the command line, then you use argv.

If you want them to input using the keyboard while the script is running, then use input().