util.py 文件源码

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

项目:dodotable 作者: spoqa 项目源码 文件源码
def to_str(x):
        if isinstance(x, text_type):
            return x
        if isinstance(x, numbers.Number):
            x = str(x)
        elif x is None:
            x = ''
        return codecs.unicode_escape_decode(x)[0]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号