摘要:
import time import os def mm(): file_name = '1.txt' file_times_modified = time.localtime(os.path.getmtime(file_name)) year_modified = file_times_modified.tm_year month_modif... 阅读全文
摘要:
Return the metadata change time of a file,reported by os.stat() 阅读全文
摘要:
文件路径使用r,/,\\都可以 file_name='C:\\Temp\\t.txt' file_name='C:/Temp/t.txt' 阅读全文