您的位置: 首页 > IT文章 > python-判断文件后缀名 python-判断文件后缀名 分类: IT文章 • 2024-06-22 23:14:25 >>> str = 'jidlhdpf.jpg' >>> str.endswith('.jpg') True endswith