摘要: 实现功能:输入为图像路径列表,根据图像名称中的数字大小实现图像路径的排序 from functools import cmp_to_key def get_suffix(filename): """a.jpg -> jpg""" pos = filename.rfind('.') if pos == 阅读全文
posted @ 2020-11-02 10:55 吾家木水 阅读(359) 评论(0) 推荐(0) 编辑