Mar-29-2020, 05:01 PM
Ok, so what you're asking about isn't really "command line arguments" - those are values passed to the program when it's started (e.g. consider
If you're insisting on unpacking the values like that, then no, there isn't a way to do that. Why do you think you need to unpack them, rather than just doing the split and say, iterating over the list with a
python foo.py a b c
- the values a, b and c are command line arguments).If you're insisting on unpacking the values like that, then no, there isn't a way to do that. Why do you think you need to unpack them, rather than just doing the split and say, iterating over the list with a
for
loop?