ファイル更新日

毎日Python/こつこつPython

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

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