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 这里要注意的就是需要在命令行来输入命令 参数必须给定!!!