Commit 29463672 by BellCodeEditor

save project

parent c2f1308f
Showing with 26 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file import turtle
Pen=turtle.Pen()
Pen.penup()
Pen.goto(100,-100)
Pen.write("huhuhu\nhuiu\nhuuuu\nhuuu",font=("Times",30,"normal"))
Pen.hideturtle()
screen=turtle.Screen()
screen.bgcolor("pink")
a=int(screen.textinput('爱心','请输入爱心的大小'))
p=turtle.Pen()
p.pencolor("red")
p.left(45)
p.fd(a*2)
p.circle(a,180)
p.right(90)
p.circle(a,180)
p.fd(a*2)
p.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