Initial commit: Python learning project with examples and exercises
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
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 = '')
|
||||
Reference in New Issue
Block a user