标签:color bsp input int for end pre print col
plaincode = input() num = int(input()) for p in plaincode: if ord("a") <= ord(p) <= ord("z"): print(chr(ord(‘a‘)+(ord(p)-ord(‘a‘)+num)%26),end=‘‘) elif ord("A") <= ord(p) <= ord("Z"): print(chr(ord(‘A‘)+(ord(p)-ord(‘A‘)+num)%26),end=‘‘) else: print(p,end="")
标签:color bsp input int for end pre print col
原文地址:https://www.cnblogs.com/xxt77/p/12701609.html