_core.py 文件源码

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

项目:nanosat-control 作者: ceyzeriat 项目源码 文件源码
def camelize_singular(txt):
    """
    Produce a 'camelized' and singular class name.
    e.g. 'the_underscores' -> 'TheUnderscore'
    """
    camelize = str(txt[0].upper() +\
                    re.sub(r'_([a-z])',
                           lambda m: m.group(1).upper(), txt[1:]))
    return inflect.engine().singular_noun(camelize)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号