Commit 3eaf9afb by BellCodeEditor

save project

parent 4cc3f6de
Showing with 15 additions and 18 deletions
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
a=turtle.Screen()
a.bgcolor("pink")
pen.pencolor("red")
pen.pensize(5)
pen.penup() pen.penup()
pen.goto(110,-110) pen.goto(0,60)
screen=turtle.Screen() pen.pendown()
screen.bgcolor("pink") pen.left(45)
pen.write("你好呀诺依,\nturtle真好用,\n我会在画布上画圆了!",font=("Times",20,"normal")) pen.forward(200)
pen.hideturtle() pen.circle(100,180)
pen1=turtle.Pen() pen.right(90)
pen1.pensize(5) pen.circle(100,180)
pen1.pencolor("red") pen.forward(200)
len1=screen.textinput("提示","你想要多大的爱心")
len=int(len1)
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.hideturtle()
turtle.done() turtle.done()
pen.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