1.判断文件是否存在 os.path.isfile('test.txt') 2.文件夹是否存在 os.path.exists(directory) 3.创建文件夹 os.makedirs("imgs")
2020-02-28