Using command line arguments in Python: Understanding sys.argv
问题 I'm currently going through Learn Python The Hard Way. I think this example might be out dated so I wanted to get feedback here on it. I'm using Python 3.1 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)) I'm getting this error: Traceback (most recent call last): File "/path/ch13.py", line 3, in <module> script, first,