python 获取文件的修改时间

os.path.getmtime(name) #获取文件的修改时间
os.stat(path).st_mtime#获取文件的修改时间
os.stat(path).st_ctime #获取文件修改时间
os.path.getctime(name)#获取文件的创建时间

原文地址:https://www.cnblogs.com/ITniu/p/5884123.html