2021-11-16 14:53 回答问题
class Color():def __init__(self, color1, color2):self.color1 = color1self.color2 = color2def Mixed(self):Mixfinished = ''if self.color1 in ['红色', '蓝色'] and self.color2 in ['红色', '蓝色'] and self.color2 != self.color1: Mixfinished = '紫色'elif self