ファイル更新日

こつこつPython

【毎日Python】Pythonでファイルの最終アクセス日と最終更新日を取得する方法|os.path.getatime/getmtime

import osfile1 = os.path.getatime('./sample/data/test.txt')file1Pythonでファイルの最終アクセス日時と最終更新日時を取得する方法です。使用するのは、Pythonのos.pa...