Commit bc1bb5a4 by BellCodeEditor

save project

parent faf8dd05
Showing with 41 additions and 0 deletions
import turtle
pen = turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("black")
clors=["green","red","orange","yellow"]
for i in range(1,300):
pen.pencolor(color[i%4])
pen.forward(i)
pen.right(91)
turtle.hideturtle()
turtle.done()
\ No newline at end of file
import random
key="abcdefg使用python实现简单的位移替换加密,制作机关密码真是太好玩了!"
message=input("请输入要加密的语句:")
key_message=""
noise="port:@#$%^&"
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
body1={"姓名":"杰克","性别":"男","年龄":"13"}
body2={"姓名":"苏珊","性别":"女","年龄":"11"}
body3={"姓名":"小贝","性别":"男","年龄":"12"}
info={"杰克":body1,"苏珊":body2,"小贝":body3}
print(info["小贝"])
\ No newline at end of file
a=int(input("请输入长:"))
b=int(input("请输入宽:"))
print("面积:"+ a*b)
print("周长:"+ (a+b)*2)
\ 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