猫史档案馆


codes

用户:Python_AI编程新手Python_AI编程新手查看:0 回复:0 评论:0 创建时间:2019-11-02T17:15:19


这是我做的一段代码codes

#imafges images_ext = ['.png','.jpg','.bmp','.jpeg','.gif'] images = [] for file in files: name,ext = os.path.splitext(file) if ext in images_ext and'bcm'in name: img = Image.open(myDir+os.sep+file) _img = img.resize((300,300)) images.append(img) print(images) #show


回复

上一页1 页 / 共 0下一页