ᶘ ᵒᴥᵒᶅ的博客path=path,options=options) def getScreenShot(self): dirname=datetime.datetime.now().strftime('%Y-%m-%d') #判断当前路径是否存在,不存在则创建文件夹 if not os.path.exists("../images/"+dirname): os.mkdir...
24k纯甄的博客如果不存在则创建文件夹 if not os.path.exists("../images/"+dirName): os.mkdir("../images/"+dirName) #2024-0809-122332.png #图片文件路径:../images/调用方法-2024-08-09-122332.png filename = sys._getframe...