题解 | #简单密码#
简单密码
http://www.nowcoder.com/practice/7960b5038a2142a18e27e4c733855dac
s = input() res="" for i in s: if i=='Z': res += 'a' elif i.isupper(): res += chr(ord(i)+1).lower() elif i.isdigit(): res += i elif i in 'abc': res += '2' elif i in 'def': res += '3' elif i in 'ghi': res += '4' elif i in 'jkl': res += '5' elif i in 'mno': res += '6' elif i in 'pqrs': res += '7' elif i in 'tuv': res += '8' elif i in 'wxyz': res += '9' print(res)