I'm working on parsing name/value pairs in Python 3.
I want to send name/value pairs to my script to simulate them coming from a web form.
I'm trying something like:
python myscript.py?v1=a&v2=b&v3=c
but that doesn't work. I get the error:
python: can't open file 'C:\\py\\myscript.py?v1=a': [Errno 22] Invalid argument
'v2' is not recognized as an internal or external command,
operable program or batch file.
'v3' is not recognized as an internal or external command,
operable program or batch file.
Is there a way to do what I'm asking?