how to perform automatic type conversion in dynamic argument parsing
问题 Most of my python codes I send a (sometimes long!) list of arguments to, which I know how to parse using getopt. All well and good so far... However I find it tiresome to type out a long if-then-else structure to pass all the arguments to a list of variables (usually of the same name as the passed argument), so I wanted to write a function that simply dynamically accepts arguments and places them in dynamical variable names, which seemed easiest to do using a dictionary, so that the pre