用户:
降临派_深渊之影查看:0 回复:0 评论:0 创建时间:2023-07-23T18:00:03
【作品展示】

【作品介绍】
【作品源代码】
global list1
list1 = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '', '']
list2 = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '', '']
e = ''
def f1():
global d, e
d = 0
while (not (a[c] is list1[d])):
d += 1
if (d > 26):
break
if (d < 27):
d += x
e = (e + list1[d])
else:
e = (e + a[c])
a = input('要加密的字符').lower()
x = int(input('位移'))
c = 0
for __count in range(len(a)):
f1()
c = (c + 1)
print(e)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn