标签:
import os
import time
filename = "test.txt"
info = os.stat(filename)
if time.time()-info.st_mtime > 600:#10分钟
print "done"
else:
print "modify"
python检测文件是否更新
原文地址:http://www.cnblogs.com/DjangoBlog/p/4425574.html