How*_*ard 14
您可以使用它os.stat
来检索此信息.
os.stat(path).st_mtime // time of most recent content modification,
os.stat(path).st_ctime // platform dependent; time of most recent metadata change on Unix, or the time of creation on Windows)
Run Code Online (Sandbox Code Playgroud)