Commit 8b9645fc by BellCodeEditor

save project

parent 74f35ce8
Showing with 5 additions and 18 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.circle(60,360,3)
pen.penup() pen.penup()
pen.goto(100,-100) pen.circle(60,60)
pen.write("诺伊,\n你好",font=("甲骨文",80,"bold")) pen.pendown()
pen1=turtle.Pen() pen.circle(60,360,3)
b=screen.textinput("","你想要多大的爱心?")
print(type(b))
a=int(b)
pen1.pensize(10)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(2*a)
pen1.circle(a,180)
pen1.right(90)
pen1.circle(a,180)
pen1.forward(2*a)
turtle.done() 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