# 下划线转驼峰 def str2Hump(text):arr = filter(None, text.lower().split('_'))res = ''j = 0for i in arr:if j == 0:res = ielse:res = res + i[0].upper() + i[1:]j += 1return res
# 下划线转驼峰 def str2Hump(text):arr = filter(None, text.lower().split('_'))res = ''j = 0for i in arr:if j == 0:res = ielse:res = res + i[0].upper() + i[1:]j += 1return res
转载于:https://www.cnblogs.com/zipon/p/10784264.html