python:os.path.getmtime(path)
os.path.getmtime(path)Returnthetimeoflastmodificationofpath.Thereturnvalueisanumbergi...
os.path.getmtime(path)
Return the time of last modification of path. The return value is a number giving the number of seconds since the epoch (see thetime module). Raise os.error if the file does not exist or is inaccessible.
这是文档原文,试了一下,返回了一个极大的数,搞不太懂这个函数什么意思,有什么用呢? 展开
Return the time of last modification of path. The return value is a number giving the number of seconds since the epoch (see thetime module). Raise os.error if the file does not exist or is inaccessible.
这是文档原文,试了一下,返回了一个极大的数,搞不太懂这个函数什么意思,有什么用呢? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询