Commit 4dabb93e by BellCodeEditor

auto save

parent 0a6c43af
Showing with 34 additions and 4 deletions
import turtle
pen=turtle.Pen()
pen.penup()
pen.goto(-100,100)
pen.down()
for i in range(4):
pen.forward(200)
pen.right(90)
pen.penup()
pen.goto(0,-50)
pen.pendown()
pen.fillcolor("blue")
pen.begin_fill()
pen.circle(50)
pen.end_fill()
pen.hideturtle()
turtle.done()
\ No newline at end of file
......@@ -3,13 +3,23 @@ import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
c=list(key)
a="onsapevj"
c.insert(3,a)
b='/'.join(c)
print(b)
message = "诺依,周末一起去看动漫展吧!"
# 请使用私钥key,对message进行加密
for i in message:
str=i
str2=random.choice(key)
str3=random.choice(key)
x_message=str+str2+str3
str1=i
str2=random.choice(b)
str3=random.choice(b)
x_message=str1+str2+str3
print(x_message)
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