img.resize((width, height),Image.ANTIALIAS)第二个参数:Image.NEAREST :低质量Image.BILINEAR:双线性Image.BICUBIC :三次样条插值Image.ANTIALIAS:高质量