一线处理空字符串和
None:
func = lambda s: s[:1].lower() + s[1:] if s else ''>>> func(None)>>> ''>>> func('')>>> ''>>> func('MARTINEAU')>>> 'mARTINEAU'
一线处理空字符串和
None:
func = lambda s: s[:1].lower() + s[1:] if s else ''>>> func(None)>>> ''>>> func('')>>> ''>>> func('MARTINEAU')>>> 'mARTINEAU'