alpha_num = {'abc': 2, 'def': 3, 'ghi': 4, 'jkl':5, 'mno': 6, 'pqrs': 7, 'tuv': 8, 'wxyz': 9}while True: try: pwd = list(input()) for i in range(len(pwd)): for key in alpha_num:#先将小写字母转换成数字 if pwd[i] in key: pwd[i] = str(alpha_num[key]) ...