python获取文件时间

import time, os
create_time = time.ctime(os.path.getctime(filename))
modify_time = time.ctime(os.path.getmtime(filename))

 

posted @ 2016-01-04 19:57  LarryKnight  阅读(1085)  评论(0编辑  收藏  举报