
July 14, 2022
6:44 p.m.
Hi, I saw a pice of code about “command line argument”:
on this page: https://docs.python.org/3/tutorial/stdlib.html#command-line-arguments 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 -- ----------- Runbing
954
Age (days ago)
955
Last active (days ago)
1 comments
2 participants
participants (2)
-
Runbing
-
Simon de Vlieger