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
"""
Test Result:
bogon:~ myRMBP$ python /Users/myRMBP/Desktop/ex13.py first 2nd 3rd
The script is called: /Users/myRMBP/Desktop/ex13.py
Your first variable is: first
Your second variable is: 2nd
Your third variable is: 3rd
"""
心得:还是比较生疏,多多练习