摘要: ,如何判断一个对象是可迭代对象呢?方法是通过 collections 模块的 Iterable 类型判断: >>> from collections import Iterable >>> isinstance('abc', Iterable) # str 是否可迭代 Python 内置的 enum 阅读全文
posted @ 2018-12-22 17:47 charles7987 阅读(132) 评论(0) 推荐(0)