📌  相关文章
📜  python windows获取文件修改日期 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:34.207000             🧑  作者: Mango

代码示例1
# note: test.txt can also be a file path
import os.path, time
print("Last modified: %s" % time.ctime(os.path.getmtime("test.txt")))
print("Created: %s" % time.ctime(os.path.getctime("test.txt")))