Answers for "passing arguments in python from command line as key value"

0

passing arguments in python from command line as key value

import sys
filename = sys.argv[1]
args = dict([arg.split('=', maxsplit=1) for arg in sys.argv[2:]])
print filename
print args
Posted by: Guest on June-30-2021

Code answers related to "passing arguments in python from command line as key value"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language