恺撒密码 B

N= input()
for i in N:
    if i == ' ':
        print(" ",end='')
    elif i in ['X','Y','Z','x','y','z']:
        print(chr(ord(i)-23),end='')
    elif 'a'<=i<='w'or 'A'<=i<='W':
        print(chr(ord(i)+3),end='')
    else:
        print(i,end='')

 

posted @ 2020-03-22 17:22  liuchun玲  阅读(107)  评论(0编辑  收藏  举报