def iscol(x):
'''
Allow distinguishing between string types and "true" containers
'''
if isinstance(x, Container):
if not isinstance(x, (str, bytes)):
return True
return False
##########################
# Higher order functions #
##########################
评论列表
文章目录