pu369com

2024年4月2日

python改变文件修改时间

摘要: 代码 : import os,random import time,datetime def change_file_time(file_path, new_timestamp): # 使用stat函数获取文件的状态 file_stat = os.stat(file_path) # 更新文件的访问时 阅读全文

posted @ 2024-04-02 17:44 pu369com 阅读(8) 评论(0) 推荐(0) 编辑

导航