这一个函数,不是方法,就是一个公式。参数就是要计算的参数。 import image print(image.binary_to_rgb(0)) print(image.binary_to_rgb(255)) 结果: >>> (0, 0, 0) (255, 255, 255)