python类collections()的实例源码

track_object.py 文件源码 项目:GRIPy 作者: giruenf 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
def _remove_all_artists(self):
        for value in self._mplot_objects.values():
            # String is a sequence too, but it will not be here
            if isinstance(value, collections.Sequence):
                for obj in value:
                    if obj:
                        obj.remove()  
            else:
                if value:
                    value.remove()
        self._mplot_objects = {}


问题


面经


文章

微信
公众号

扫码关注公众号