重写__eq__函数——对象list中使用in index()——获得list中不同属性对象个数

https://blog.csdn.net/anlian523/article/details/80868961

原文地址:https://www.cnblogs.com/1a2a/p/11335643.html