需要增加mask参数
def test():
im_name = Image.open("model.png")
img = 'logo_2.png' # 图片模板
#img_cai_jie = get_image(img,150,150)
img_cai_jie = Image.open("111111.png")
box = (283,215)
r,g,b,a = img_cai_jie.split()
im_name.show()
im_name.paste(img_cai_jie, box,mask=a)
im_name.show()
# im_name.save(y_name + '.png', 'PNG')