摘要:
import os path=input("请输入图片目录的路径:") if path[-1]!='/': path+='/' f=os.listdir(path) print("pictures count:", len(f)) for i in range(0, len(f)): oldname=path+f[i] newname=path+'liudehua_'... 阅读全文
posted @ 2018-03-08 15:23
jiu~
阅读(282)
评论(0)
推荐(0)
摘要:
1. 查看当前目录所有文件和文件夹的大小 方法一: $du -sh * 或 $du -h -d 0 * '-d 0' 代表查询目录的深度为0 ,也就是当前目录,'-d 3' 表示文件目录深度为3,可以查到当前目录下的1~3级目录。 方法二: $ls -lh 或$ls -lht 2. 查看并统计文件和 阅读全文
posted @ 2018-03-08 13:37
jiu~
阅读(18208)
评论(0)
推荐(0)

浙公网安备 33010602011771号