Commit e74813e9 by BellCodeEditor

save project

parent 780662f3
Showing with 43 additions and 14 deletions
import random import turtle
v='' turtle.speed(3)
# 私钥 turtle.pensize(4)
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" turtle.color("black","black")
# 要加密语句 turtle.begin_fill()
message = "诺依,周末一起去看动漫展吧!" turtle.circle(50,180)
turtle.circle(100,180)
# 请使用私钥key,对message进行加密 turtle.left(180)
for i in message: turtle.circle(-50,180)
a=i turtle.end_fill()
b=random.choice(key) turtle.color("white","white")
c=random.choice(key) turtle.begin_fill()
v=v+a+b+c turtle.left(90)
print(v) turtle.penup()
turtle.forward(40)
turtle.right
turtle.pendown()
turtle.circle(20)
turtle.end_fill()
turtle.penup()
turtle.color("black","black")
turtle.begin_fill()
turtle.right(180)
turtle.forward(80)
turtle.pendown()
turtle.right(90)
turtle.circle(20)
turtle.end_fill()
turtle.penup()
turtle.left(90)
turtle.forward(60)
turtle.left(90)
turtle.pendown()
turtle.color("yellow")
turtle.circle(100,180)
turtle.done()
import turtle as t
t.color("yellow")
for i in range(36):
t.fd(1000)
t.right(170)
t.done()
\ No newline at end of file
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