str = input() list = [] dic = {"abc":2,"def":3,"ghi":4,"jkl":5,"mno":6,"pqrs":7,"tuv":8,"wxyz":9} for i in str: try: if i =="Z": list.append("a") elif i.isupper(): list.append(chr(ord(i.lower())+1)) elif i.islower(): for a in dic.keys(): if i in a: list.append(dic.get(a)) else: list.append(i) except: print("请重新输入") for n in list: print(n,end="")
点赞
牛客网
牛客企业服务