判断文件是否存在

result = os.path.exists(self.MailSendingStatusPath)
        if result == True:
            self.append_status_report()
        elif result == False:
            self.create_new_status_report()

 

posted @ 2021-04-25 20:08  胸怀丶若谷  阅读(107)  评论(0)    收藏  举报