def format_name(s):
return s[0].upper() + s[1:].lower()
print map(format_name, ['adam', 'LISA', 'barT'])
转载于:https://blog.51cto.com/hongtengfei/1751016
def format_name(s):
return s[0].upper() + s[1:].lower()
print map(format_name, ['adam', 'LISA', 'barT'])
转载于:https://blog.51cto.com/hongtengfei/1751016