Hi,
I saw a pice of code about “command line argument”:
>>> import sys>>> print(sys.argv)
['demo.py', 'one', 'two', 'three']
on this page:
It shows how to get a list of parameters and looks like it's in interactive mode.
But I can't do the same thing in interactive mode, sys.argv is always return empty list, unless I put these code in a script and execute it.
Does this mean this sample code not too clear?
Regards
--