Commit e74813e9 by BellCodeEditor

save project

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