def camelize_singular_rev(txt):
"""
Produce a 'decamelized' and plural class name.
e.g. 'TheUnderscore' -> 'the_underscores'
"""
decamelize = str(txt[0].lower() +\
re.sub(r'([A-Z])',
lambda m: '_'+m.group(1).lower(), txt[1:]))
return inflect.engine().plural_noun(decamelize)
评论列表
文章目录