Discuss / Python / 第一题

第一题

Topic source

卟帥卟帥

#1 Created at ... [Delete] [Delete and Lock User]
#-*- coding:utf-8 -*-

def normalize(name):
    s=name[0].upper()+name[1:].lower()
    return s

L1 = ['adam', 'LISA', 'barT']
L2 = list(map(normalize, L1))
print(L2)

  • 1

Reply