#coding=utf-8
import os
if __name__ == "__main__":
dir = "c:/test/"
files = os.listdir(dir)
for file in files:
stat = os.stat(dir + file)
print stat.st_ctime
#coding=utf-8
import os
if __name__ == "__main__":
dir = "c:/test/"
files = os.listdir(dir)
for file in files:
stat = os.stat(dir + file)
print stat.st_ctime
转载于:https://my.oschina.net/qiongtaoli/blog/1548724