Python:map()的使用方法

xiaoxiao2021-02-28  114

def format_name(s):     return s[0].upper() + s[1:].lower()           print map(format_name, ['adam', 'LISA', 'barT'])
转载请注明原文地址: https://www.6miu.com/read-61148.html

最新回复(0)