1、导入所需的包
import os
from PIL import Image
2、获取源图片
path_img image
img_dir os.listdir(path_img)
3、循环读取源图片并按指定宽高进行自动截图保存
for i in range(len(img_dir)):id img_dir[i].split(.)[0]img Image.open(path_img / img_dir[i])si…
”is the taking possession by the mind, in clear and vivid form, of one out of what seem several simultaneously possible objects or trains of thought. It implies withdrawal from some things in order to deal effectively with others“,William Jame…