问题描述 给定一个Numpy数组image,希望使用PIL的方法将其保存为图像。 解决方案: from PIL import Image image = Image.fromarray(image) image.save('/path/to/save/image.png')