这样为什么不行呢?
#!/usr/bin/python def format_name(s): return s.capitalize() print(map(format_name, ['adam', 'LISA', 'barT']))
结果会报<map object at 0x03780040>
#!/usr/bin/python def format_name(s): return s.capitalize() print(map(format_name, ['adam', 'LISA', 'barT']))
结果会报<map object at 0x03780040>
2020-03-01
举报