Commit 6853670d by BellCodeEditor

save project

parent 654bc3ba
Showing with 23 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
s=turtle.Screen()
len=s.textinput("提示","爱心大小?")
lovesize=int(len)
pen.penup()
pen.goto(100,-100)
pen.write("诺依,我收到你的信了\n,turtle模块真好用",font=("times",30,"normal"))
pen.hideturtle()
# turtle.done()
import turtle
pen1=turtle.Pen()
pen1.left(45)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(2*lovesize)
s.bgcolor("red")
pen1.hideturtle()
turtle.done()
\ No newline at end of file
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