题解 | #简单密码#
简单密码
http://www.nowcoder.com/practice/7960b5038a2142a18e27e4c733855dac
同学习懒鬼思路,简化版的字典
A ="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
B ="22233344455566677778889999bcdefghijklmnopqrstuvwxyza"
while True:
try:
secret = input()
res = []
for x in secret:
if x.isupper() or x.islower():
indx = A.find(x)
x = B[indx]
res.append(x)
print(''.join(res))
except:
break