我正在阅读由Zed A. Shaw学习的PYTHON THE HARD WAY。在第13章,我得到了下面的代码Python代码未运行
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)
我尝试对Spyder的运行这一点,但错误occurs.I要粘贴的Spyder控制台的最后几行 ValueError: not enough values to unpack (expected 4, got 1)
请帮我找出问题, 谢谢。
1.如果您遇到错误,您需要在这里发布。说你得到错误,然后不说他们是不是很有帮助。你如何运行脚本?你是否传递任何参数? – Carcigenicate
请看看这个[argv](https://stackoverflow.com/questions/13263951/what-is-argv-and-what-does-it-do) – ABcDexter