Commit 72d70463 by BellCodeEditor

save project

parent 2792b44e
Showing with 82 additions and 0 deletions
# dad=int(input("请输入爸爸的身高:"))
# mom=int(input("请输入妈妈的身高:"))
# xishu=int(input("请输入性别系数:"))
# shengao=(dad+mom+13*xishu)/2
# print(shengao)
# import turtle as t
# t.circle(40)
# t.circle(-40,360)
# t.setheading(0)
# t.forward(80)
# t.circle(40)
# t.circle(-40,360)
# t.hideturtle()
# t.done()
# chang=int(input("请输入长方形的长:"))
# kuan=int(input("请输入长方形的宽:"))
# mianji=chang*kuan
# print("面积是:"+str(mianji))
# zhouchang=(chang+kuan)*2
# print("周长是:"+str(zhouchang))
# import turtle as t
# t.fillcolor("black")
# for i in range(4):
# t.right(90)
# t.forward(100)
# t.begin_fill()
# for i in range(3):
# t.forward(100)
# t.right(90)
# t.end_fill()
# t.forward(200)
# for i in range(3):
# t.right(90)
# t.forward(100)
# t.begin_fill()
# for i in range(4):
# t.forward(100)
# t.right(90)
# t.end_fill()
# t.hideturtle()
# t.done()
# import turtle as t
# for i in range(4):
# t.forward(200)
# t.right(90)
# t.penup()
# t.goto(100,-100)
# t.pendown()
# t.dot(10,"red")
# t.penup()
# t.goto(60,-100)
# t.pendown()
# t.dot(10,"red")
# t.penup()
# t.goto(140,-100)
# t.pendown()
# t.dot(10,"red")
# t.hideturtle()
# t.done()
# total=int(input("请输入总秒数:"))
# xiaoshi=total//3600
# fenzhong=(total-xiaoshi*3600)//60
# miao=total-xiaoshi*3600
# print(str(xiaoshi)+" "+str(fenzhong)+" "+str(miao))
import turtle as t
t.fillcolor("red")
t.begin_fill()
t.forward(180)
t.left(90)
t.forward(180)
t.goto(0,0)
t.end_fill()
t.fillcolor("yellow")
t.begin_fill()
t.setheading(90)
t.forward(180)
t.right(90)
t.forward(180)
t.end_fill()
t.hideturtle()
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