单项选择题

A.hasattr(obj,’__iter__’)
B.isinstance(obj,Iterable)
C.obj.isIterable()
D.A和B都对