Commit 79ff7485 by BellCodeEditor

save project

parent a15989ca
Showing with 27 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen = turtle.Screen()
size = float(screen.textinput("爱心","请输入爱心半径大小"))
screen.bgcolor("orange")
pen = turtle.Pen()
pen.penup()
pen.goto(-105,-100)
pen.pendown()
pen.write("诺依,turtle真好用",font = ("Times",25,"bold"))
pen.hideturtle()
pen1 = turtle.Pen()
pen1.fillcolor("red")
pen1.begin_fill()
pen1.penup()
pen1.goto(50,-50)
pen1.pendown()
pen1.pencolor("red")
pen1.left(45)
pen1.forward(2*size)
pen1.circle(size,180)
pen1.right(90)
pen1.circle(size,180)
pen1.forward(2*size)
pen1.end_fill()
pen1.hideturtle()
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