一、max中key的用法实例: · x = 'Life is short , I use python' · ans = max(x.split(),key=lambda k: sum(ord(c) for c in k)) · print('句子中ASCII码 ...
確定! 回上一頁