code: def get_color_list(method_list):
      
      color_list = []
      for method in method_list:
          color = tuple([random() for _ in range(3)])  # 随机颜色画线
          color_list.append(color)
      return color_list
docs: 获取method对应的color列表.