标签:getmtime
#!/usr/bin/python
import osimport time
dir="/root/ming.txt"
now = time.time()f = os.path.getmtime(dir)
if f < (now - 86400):print dir
:wq
判断文件的更改时间是否超过24小时python脚本
原文地址:http://blog.51cto.com/yangzhiming/2125831