print ("The script is called:", script)
print ("Your first variable is:", first)
print ("Your second variable is:", second)
print ("Your third variable is:", third)
运行后 C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python.exe D:/python/笨方法学python/case13.py
Traceback (most recent call last):
File "D:/python/笨方法学python/case13.py", line 3, in <module>
script, first, second, third = argv
ValueError: not enough values to unpack (expected 4, got 1)