我正在从Zed A. Shaw撰写的“艰难地学习Python-第三版”中编写程序。我是编程的新手,完全参加了练习12。请查看我的代码,并帮助我解决我做错的事情,因为我所知道的一切与本书中的内容完全一样
from sys import argv
script, first, second, third = argv
print "The script is called:", script
print "Your first variable is called:", first
print "Your second variable is:", second
print "Your third variable is:", third
完整的错误消息如下(由于经验不足,我很难理解它)
Traceback (most recent call last):
File "ex13.py", line 3, in <module>
script, first, second, third = argv
ValueError: need more than 1 value to unpack