会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
吾家木水
博客园
首页
新随笔
联系
管理
2020年11月2日
python实现根据图像路径排序
摘要: 实现功能:输入为图像路径列表,根据图像名称中的数字大小实现图像路径的排序 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)
编辑
公告