python凯撒密码1_python学习笔记[1]-凯撒密码
#!/usr/bin/python#FileName:caesar.py#Code:UTF-8import sysdef caesarEnCode(string,tag):ChgString = ""for s in string:if s.islower():ChgString += chr((ord(s)-ord('a')+tag)%26+ord('a'))elif s.isupper():C...