Sorry for this newbie question:
Assume I have have a python script myscript.py (on Windows 10).
Now I want to call this script (from command line) and pass two parameters (separrted by blanks) e.g.
myscript.py "D:\tools\input data.txt" 65656
The parameters may or may not enclosed in double quotes (as above).
How can I access these passed parameters from inside the script?
Say I want to echo/output them (=the values) simply on command line.
It would be nice to get a sample script.
Thank you
Peter
Assume I have have a python script myscript.py (on Windows 10).
Now I want to call this script (from command line) and pass two parameters (separrted by blanks) e.g.
myscript.py "D:\tools\input data.txt" 65656
The parameters may or may not enclosed in double quotes (as above).
How can I access these passed parameters from inside the script?
Say I want to echo/output them (=the values) simply on command line.
It would be nice to get a sample script.
Thank you
Peter