重写__eq__函数——对象list中使用in index()——获得list中不同属性对象个数 https://blog.csdn.net/anlian523/article/details/80868961