def main(args):
print(args.data_path)
if __name__=='__main__'
import argparse
parser = argparse.ArgumentParser(description=__doc__)
# 数据集路径
parser.add_argument('--data_path',default='',help='where to save data.')
args = parser.parse_args()
main(args)
标签:__,argparse,parser,args,应用,简单,main,data
From: https://www.cnblogs.com/hezexian/p/16910625.html