Files
Python/python代码/3.2.2.py
T

8 lines
213 B
Python

word = input("请输入明文:")
size = len(word)
for i in range(size):
newword = ord(word[i])+3
if newword<=ord('z'):
print(chr(newword),end = '')
else:
print(chr(newword-26),end = '')