python os模块atime ,ctime,mtime意义

ython的os.stat中主要的时间信息有三个:st_mtime,st_atime,st_ctime。

  1、st_mtime:time of last modification
     最后一次修改时间,如果使用write函数写某个文件,会改变文件的这个时间
  2、st_atime:time of last access
     最后一次访问时间,如果使用read函数读某个文件,会改变文件的这个时间
  3、st_ctime:time of last change
     最后一次修改文件权限时间,如果使用chmod修改了文件的权限,会改变这个时间