svg.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:sketch-components 作者: ibhubs 项目源码 文件源码
def default(self, obj):
        if not isinstance(obj, tuple(svgClass.values() + [Svg])):
            return json.JSONEncoder.default(self, obj)

        if not hasattr(obj, 'json'):
            return repr(obj)

        return obj.json()


# Code executed on module load #
# SVG tag handler classes are initialized here
# (classes must be defined before)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号