获取某路径下,最后被修改的文件
摘要:
import osdef lu(path): filesn=os.listdir(path) filesn.sort(key=lambda x:os.path.getmtime(path+x)) #luf=path+filesn[-1] luf=os.path.join(path+filesn[-1 阅读全文
posted @ 2019-12-05 23:25 星空6 阅读(342) 评论(0) 推荐(0)
posted @ 2019-12-05 23:25 星空6 阅读(342) 评论(0) 推荐(0)