dict转argparse 思路:调用argparse的静态方法Namespace,自动将dict的键值对转化为argparse对象 importargparse# create a dict objecta_student={'Name':'JACK Williams','ID':391568,'At_School':True,'Math_Score':92.3}# transfer the dict object to an ArgumentParser objectargs=argparse.Namespace(**a_studen...