单项选择题

在Python中,如何检查一个对象的所有属性和方法?()

A.obj.__dict__
B.dir(obj)
C.obj.attributes()
D.obj.methods()