习题13.md

#参数,解包,变量
from sys import argv
script,first,second,third = argv #argv参数变量,包含了传递给python的所有参数
print("The script is called:",script)
print("The first variable is:",first)
print("The second variable is:",second)
print("The third variable is:",third)

结果

猜你喜欢

转载自blog.csdn.net/DMU_lzq1996/article/details/82776740