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 阅读(180) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示