Commit 6bc72d45 by BellCodeEditor

save project

parent a50ceeec
Showing with 26 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
d=float(input("输入大小。"))
import turtle
a=turtle.Pen()
a.write("哈哈哈哈哈哈哈哈哈",font=("times",20,"normal"))
a.hideturtle()
b=turtle.Pen()
b.penup()
b.goto(100,-200)
b.pendown()
b.pencolor("red")
b.fillcolor("red")
b.begin_fill()
b.pensize(2)
b.left(45)
b.forward(d)
b.circle(d/2,180)
b.right(90)
b.circle(d/2,180)
b.forward(d)
b.end_fill()
b.hideturtle()
c=turtle.Screen()
c.bgcolor("pink")
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