执行完map()函数后,报:<map object at 0x0045C370>,哪出错了,求指教
def format_name(s):
return s[0].upper() + s[1:].lower()
print (map(format_name, ['adam', 'LISA', 'barT']))
def format_name(s):
return s[0].upper() + s[1:].lower()
print (map(format_name, ['adam', 'LISA', 'barT']))
2015-11-26
举报