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  阅读(1098)  评论(0)    收藏  举报