iter (x) 语句实际上是调用了x 内部的 __iter__ 方法的, 调用 __iter__ 方法后会返回一个迭代器,由于迭代器内部实现了 next 方法(python2中是 next 方法 ...
確定! 回上一頁