Commit e2ba8544 by BellCodeEditor

save project

parent 8ee2c4ac
import turtle
turtle.penup()
turtle.goto(0,-200)
turtle.pendown()
turtle.circle(200)
turtle.penup()
turtle.fillcolor('blue')
turtle.begin_fill()
turtle.circle(20)
turtle.end_fill()
turtle.penup()
turtle.goto(100,50)
turtle.pendown()
turtle.fillcolor('blue')
turtle.begin_fill()
turtle.circle(20)
turtle.end_fill()
turtle.penup()
turtle.goto(0,50)
turtle.pendown()
turtle.circle(-50,steps=3)
turtle.penup()
turtle.goto(-150,-70)
turtle.pendown()
turtle.goto(0,-170)
turtle.goto(150,-70)
turtle.done()
\ No newline at end of file
a=int(input("总秒数:"))
print(a//3600,a%3600//60,a%3600%60)
\ No newline at end of file
import turtle
turtle.penup()
turtle.goto(-100,100)
turtle.pendown()
for i in range(4):
turtle.forward(200)
turtle.right(90)
turtle.penup()
turtle.goto(0,-50)
turtle.pendown()
turtle.begin_fill()
turtle.color("black","blue")
turtle.circle(50)
turtle.end_fill()
turtle.done()
\ No newline at end of file
a=int(input("fyfydy:"))
print("b: %s, sh: %s, g: %s"%(a//100,a//100%10,a%10))
\ No newline at end of file
import turtle
turtle.penup()
turtle.goto(-100,75)
turtle.pendown()
turtle.begin_fill()
turtle.goto(100,75)
turtle.goto(100,-75)
turtle.goto(-100,-75)
turtle.goto(-100,75)
turtle.color("black","red")
turtle.end_fill()
turtle.penup()
turtle.goto(-20,10)
turtle.pendown()
turtle.color("yellow","yellow")
turtle.begin_fill()
for i in range(5):
turtle.forward(50)
turtle.right(144)
turtle.end_fill()
turtle.hideturtle()
turtle.done()
import random
a=""
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
message = "诺依,周末一起去看动漫展吧!"
message1="hhcdbjbcjevegf"
# 请使用私钥key,对message进行加密
for i in message:
a1=i
a2=random.choice(key)
a3=random.choice(key)
b=a1+a2+a3
a=a+b
print(a)
c=list(a)
c.insert(4,message1)
print(c)
d="".join(c)
print(d)
import turtle
turtle.speed(1)
turtle.penup()
turtle.goto(-100,100)
turtle.pendown()
for i in range(4):
turtle.forward(200)
turtle.right(90)
turtle.forward(100)
turtle.color("black","red")
turtle.begin_fill()
turtle.goto(100,0)
turtle.goto(0,-100)
turtle.goto(-100,0)
turtle.goto(0,100)
turtle.end_fill()
turtle.hideturtle()
turtle.done()
a=int(input("输入长"))
b=int(input("输入宽"))
print("长方的面积是",a*b,sep="")
print("长方的周长是",(a+b)*2,sep="")
import turtle
turtle.penup()
turtle.goto(-100,100)
turtle.pendown()
turtle.color("black")
turtle.begin_fill()
for i in range(4):
turtle.forward(100)
turtle.right(90)
turtle.end_fill()
turtle.forward(100)
for i in range(4):
turtle.forward(100)
turtle.right(90)
turtle.goto(0,0)
turtle.begin_fill()
for i in range(4):
turtle.forward(100)
turtle.right(90)
turtle.end_fill()
turtle.goto(-100,0)
for i in range(4):
turtle.forward(100)
turtle.right(90)
turtle.hideturtle()
turtle.done()
'''
vhvhvgvjh
'''
a=6 #lguyfhv
b=3 #hjbknk
s=a*b #iguihi
print("yhvhjb",s) #fvugiuhi
\ No newline at end of file
p=3.14
r=int(input("请输入一个数字作为半径:"))
a=2*r
b=a*p
c=p*r*r
print("jduwd:%.2f"%a)
print("djWDC:%.2f"%b)
print("skici:%.2f"%c)
import turtle
turtle.speed(1)
turtle.penup()
turtle.goto(-90,90)
turtle.pendown()
turtle.begin_fill()
turtle.goto(90,90)
turtle.goto(-90,-90)
turtle.goto(-90,90)
turtle.color("black","yellow")
turtle.end_fill()
turtle.goto(90,90)
turtle.begin_fill()
turtle.goto(90,-90)
turtle.goto(-90,-90)
turtle.goto(90,90)
turtle.color("black","red")
turtle.end_fill()
turtle.hideturtle()
turtle.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