from sys import argv
script,first,second,third=argv
print "The script os called:",script
print "Your first variable is:",first
print "Your second variable is:",second
print "Your third variable is:",third
这样就可以了。
运行结果
D:\test>python test.py MIT Harvard Princeton
The script os called: ex03.py
Your first variable is: MIT
Your second variable is: Harvard
Your third variable is: Princeton
还有不要用中文