可以通过 isinstance(obj, collections.Iterable) 来判断对象是否为可迭代对象。 迭代器对象(Iterator). 迭代器对象是一个含有 next (Python 2) 或者 __ ...
確定! 回上一頁