if not os.path.exists(os.path.join(basePath, "Files")): """判断文件夹是否存在,不存在则创建文件夹""" os.mkdir(os.path.join(basePath, "Files")) screenshotPath = os.path.join(basePath, "Files")