需求:使用 pathlib 创建多级文件夹。 pathlib.Path('./data').mkdir(parents=True, exist_ok=True) parents = True: 创建中间级父目录exist_ok= True: 目标目录存在时不报错