import os
images_files = os.listdir(" ")
for file in image_flies:
if file.endswith('.jpg'):
os.remove(os.path.join(" ", file))
python-删除文件夹下后缀是.jpg的图片
最新推荐文章于 2023-08-01 15:33:38 发布
import os
images_files = os.listdir(" ")
for file in image_flies:
if file.endswith('.jpg'):
os.remove(os.path.join(" ", file))