【发布时间】:2012-09-25 03:36:30
【问题描述】:
我正在学习 learnpythonthehardway.org 的练习 13。我应该运行这段代码:
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
然后在命令行输入“python ex13.py first 2nd 3rd”应该会输出:
The script is called: ex13.py
Your first variable is: first
Your second variable is: 2nd
Your third variable is: 3rd
但是,我在 Vista 上使用 Aptana Studio 3,我得到了 “ValueError:要解压的值太多”错误。
我是 Python 和 Aptana 的新手,所以如何在此处输入单独的参数?
【问题讨论】: