方法1: code_str =input() dic ={"1":1,"abc":2,"def":3,"ghi":4,"jkl":5,"mno":6,"pqrs":7,"tuv":8,"wxyz":9,"0":0} out_str = [] for x in code_str: if x.islower(): # for key in dic: # dict.get(key, default=None)返回指定键的值,如果值不在字典中返回default值 # dict.items()以列表返回可遍历的(键, 值) 元组数组...