函数原来形式如下:scipy.misc.toimage(*args,**kwds)这个函数将在scipy 1.2.0版本中删除,将会用Pillow的Image.formarray替代。 具体参考链接如下:将数组保存成图像的多种方法