import os
import time
filename = "test.txt"
info = os.stat(filename)
if time.time()-info.st_mtime > 600:#10分钟
print "done"
else:
print "modify"
import os
import time
filename = "test.txt"
info = os.stat(filename)
if time.time()-info.st_mtime > 600:#10分钟
print "done"
else:
print "modify"