摘要: import math from PIL import Image, ImageStat def get_image_light_mean(dst_src): im = Image.open(dst_src).convert('L') stat = ImageStat.Stat(im) return stat.mean[0] def get_image_light... 阅读全文
posted @ 2019-04-30 17:38 shinelover 阅读(2096) 评论(0) 推荐(0) 编辑
摘要: 按文件名称字符串小写排序 按创建时间精确到秒排序 按创建时间,精确到纳秒排序 按文件名称去掉后缀的数值名称排序 使用os.stat的返回值statinfo的三个属性获取文件的创建时间等信息 可按照文件名称排序,对字符串和数值混合的可以自定义实现混合排序 阅读全文
posted @ 2019-04-30 17:37 shinelover 阅读(3246) 评论(0) 推荐(0) 编辑