摘要: 利用map()函数,把用户输入的不规范的英文名字,变为首字母大写,其他小写的规范名字。例如输入:['maxbon', 'pythoN', 'aBcdEFGhi'],输出:['Maxbon', 'Python', 'Abcdefghi']。代码: 1 #定义一个list 2 L = [] 3 #设... 阅读全文
posted @ 2015-06-03 15:34 maxbon 阅读(491) 评论(0) 推荐(0)