Commit 18a17559 by BellCodeEditor

save project

parent 5da7d712
Showing with 18 additions and 2 deletions
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("light pink")
pen=turtle.Pen() pen=turtle.Pen()
pen.write("诺依\n turtle真好用\n 我也会在画布上画画了\n",font=("Times",30,"normal")) pen.penup()
pen.goto(0,-200)
pen.write("诺依\nturtle真好用\n我也会在画布上画画了\n",font=("Times",25,"normal"))
pen.hideturtle() pen.hideturtle()
pen1=turtle.Pen()
len=screen.textinput("提示","输入数字")
lovesize=int(len)
pen1.pensize(5)
pen1.color("red")
pen1.left(45)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(2*lovesize)
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