課程
/后端開發
/Python
/python進階
def format_name(s):??? return s[0].upper()+s[1:].lower??? ?print map(format_name, ['adam', 'LISA', 'barT'])
2019-09-10
源自:python進階 2-4
正在回答
lower后面少了括號哦~
def format_name(s):
? ? return s[0].upper()+s[1:].lower()
print map(format_name, ['adam', 'LISA', 'barT'])
謝謝啦,
舉報
學習函數式、模塊和面向對象編程,掌握Python高級程序設計
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-09-11
lower后面少了括號哦~
def format_name(s):
? ? return s[0].upper()+s[1:].lower()
print map(format_name, ['adam', 'LISA', 'barT'])
2019-09-11
謝謝啦,