import argparse from pathlib import Path parser = argparse.ArgumentParser() #可以添加多个add_argument parser.add_argument( "--all_tif",# 调用的时候就看这个变量 type=Path, default=Path("new_tif"),#所存放的内容 help="Location of the WSI organized in subfolders by class")#提示
parser.add_argument( "--all_xml", type=Path, default=Path("new_xml"), help="Location of the WSI organized in subfolders by class")