Commit 5f95b6d7 by BellCodeEditor

save project

parent e696c350
Showing with 19 additions and 18 deletions
"""
使用turtle模块画图
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
"""
import turtle
pen=turtle.Pen()
# 请创造师在下面接着创作
screen=turtle.Screen()
screen.bgcolor("black")
colors=["red","orange","yellow","green"]
pen.speed(100000000000)
for i in range(1,300):
pen.fd(i)
pen.pencolor(colors[i%4])
pen.right(91)
# 隐藏画笔,保存画布
turtle.done()
\ No newline at end of file
import random
#私钥
key="依诺你有病"
message="依诺大SB"
key_message=""
noise="port:trhgbgfdfghgrszgdtfsftyfcdxg"
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
text=str1+str2+str3
key_message=key_message+text
list_message= list(key_message)
index= random.randint(0,len(key_message))
list_message.insert(index,noise)
result_message="".join(list_message)
print(result_message)
\ 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