帮我写一下个log检查是否通过的的脚本,使用python

我可以给你一个示例:import os log_file = "某日志文件的路径" # 检查文件是否存在 if os.path.exists(log_file): print("日志检查通过!") else: print("日志检查不通过!")

猜你喜欢

转载自blog.csdn.net/weixin_42584758/article/details/129607400