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="")
点赞

相关推荐

牛客98820962...:个人意见,我觉得实习和项目经历要一致,达美乐感觉没必要写
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务