serializers.py 文件源码

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

项目:jussi 作者: steemit 项目源码 文件源码
def dumps(self, value: Union[AnyStr, dict]) -> bytes:
        # FIXME handle structs with bytes vals, eg, [1, '2', b'3']
        # currently self.loads(self.dumps([1, '2', b'3'])) == [1, '2', '3']
        return zlib.compress(ujson.dumps(value).encode())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号