|
按照书中代码输入:
from sys import argv
script, first, second, third= argv
print "The script is called:", script
print "Your first variable is:", first
print "Your second variable is:", second
print "Your third variable is:", third
得到下面的错误提示:
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript
exec codeObject in __main__.__dict__
File "C:\Python27\train\ex13.py", line 4, in <module>
script, first, second, third= argv
ValueError: need more than 1 value to unpack
最后这句应该是错误的关键吧?可是不会改,求各位高手明示!
|
|