def snake_to_pascal(word):
"""蛇形转大驼峰"""
if "_" in word:
words = word.split("_")
return "".join(word.title() for word in words)
return word.title()
def snake_to_pascal(word):
"""蛇形转大驼峰"""
if "_" in word:
words = word.split("_")
return "".join(word.title() for word in words)
return word.title()