Commit fb2558c0 by BellCodeEditor

save project

parent 58d015ba
Showing with 2 additions and 2 deletions
...@@ -3,7 +3,7 @@ import random ...@@ -3,7 +3,7 @@ import random
# 私钥 # 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句 # 要加密语句
message = "傻逼!" message=input()
s="" s=""
i=0 i=0
for i in message: for i in message:
...@@ -14,7 +14,7 @@ for i in message: ...@@ -14,7 +14,7 @@ for i in message:
s=s+h s=s+h
porm = "jhkakjs" porm = "jhkakjs"
a=list(s) a=list(s)
g=random.randint(len(message)) g=random.randint(0,len(message))
a.insert(g,porm) a.insert(g,porm)
r="".join(a) r="".join(a)
print(r) print(r)
......
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