python PIL Image BGRA 转为 RGBA b,g,r,a = Image.open("box.png").split() box_png = Image.merge("RGBA", (r,g,b,a)) 两行即可