九州体育网 - 十年信誉网站

关于作者

Discuss / Python / 第一题,供参考

第一题,供参考

Topic source

骑着单车去追梦20160428

#1 Created at ...

def normalize(s): return(s.lower().title())

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

print(L2) ['Adam', 'Lisa', 'Bart']


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.