Get last access time of the file?

前端 未结 0 1510
北恋
北恋 2020-12-18 02:52

I want to get when the file accessed last time, I tried following code:

import os, time

os.system(\"python test.py\")
print os.stat(\'test.py\').st_atime

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题