Commit 6b833cd0 by BellCodeEditor

save project

parent a87ed512
Showing with 8 additions and 21 deletions
# 利用write()帮助悟空给诺依回信吧~ import turtle# 利用write()帮助悟空给诺依回信吧~
import turtle pen=turtle.pen
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") size=screen.textinput("提示","你想要多大的魔法阵呀?")
len=screen.textinput("100","100") len=int
pen=turtle.Pen() pen.circle(len)
pen.penup() pen.circle(len,360,3)
pen.goto(100,-100) pen.circle(len,60)
pen.write("你好\n诺依.",font=("Times",30,"normal")) pen.circle(len,360,3)
pen.hideturtle()
pen1.=turtle.pen()
pen1.pencolor("red")
pen1.pensize(5)
len=screen.textinput("提示","你想要多大的爱心呀?")
lovesize=int(len)
pen1.left(45)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen.pencolor("red")
pen.forward(2*lovesize)
pen1.hideturtle()
turtle.done() 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