python中属性对象不可下标是什么意思,列表元素(对象)不可下标
I want to create a unit test for a function which sorts a list of objects according to some object attribute(s). Here is a code sample:class Foo:"""Custom data type Foo."""def __init__(self,a: str,b: ...