m_time = (os.path.getmtime(filename))
t_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(m_time))
str_time = str(t_time)
python 获取文件时间
于 2022-05-30 15:32:06 首次发布
m_time = (os.path.getmtime(filename))
t_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(m_time))
str_time = str(t_time)