Commit b7ff4c5b by BellCodeEditor

auto save

parent dd574483
Showing with 3 additions and 2 deletions
...@@ -2,8 +2,7 @@ import random ...@@ -2,8 +2,7 @@ import random
noise=("#$%^^**&^%$@@#$^^%$#$@!@#$") noise=("#$%^^**&^%$@@#$^^%$#$@!@#$")
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
a=input("你有什么秘密:")
a=input("你有什么秘密")
now=" " now=" "
for i in a: for i in a:
#print(i) #print(i)
...@@ -15,6 +14,8 @@ for i in a: ...@@ -15,6 +14,8 @@ for i in a:
print(now) print(now)
sb=list(now) sb=list(now)
index=random.randint(0,len(sb)) index=random.randint(0,len(sb))
sb.insert(index,noise) sb.insert(index,noise)
bs="".join(sb) bs="".join(sb)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment