Commit bd2c952d by BellCodeEditor

save project

parent fd49788a
Showing with 21 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
\ No newline at end of file pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("pink")
a=int(screen.textinput("提示","你想画多大的爱心"))
screen.bgcolor("light blue")
pen.penup()
pen.goto(200,0)
pen.write("你\n好",font=("Times",20,"normal"))
pen1=turtle.Pen()
pen1.color("red","red")
pen1.begin_fill()
pen1.left(45)
pen1.forward(2*a)
pen1.circle(a,180)
pen1.right(90)
pen1.circle(a,180)
pen1.forward(2*a)
pen1.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