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