Commit 42c8e0c2 by BellCodeEditor

save project

parent bd83923c
Showing with 11 additions and 23 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
a=float(input("输入大小"))
c=input("输入颜色")
b=turtle.Pen()
b.penup()
b.goto(120,-120)
b.write("gugin;\noickfhm",font=("times",30,"normal"))
b.hideturtle()
# turtle.done()
a=turtle.Pen()
a.penup()
a.goto(120,-120)
a.pencolor("green")
a.fillcolor("green")
a.begin_fill()
a.goto(120,120)
a.pendown()
a.left(45)
a.forward(100)
a.circle(50,180)
a.right(90)
a.circle(50,180)
a.forward(100)
a.end_fill()
c=turtle.Screen()
c.bgcolor("pink")
b.fillcolor(c)
b.begin_fill()
b.left(45)
b.forward(a)
b.circle(a/2,180)
b.right(90)
b.circle(a/2,180)
b.forward(a)
b.end_fill()
turtle.done()
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