Commit cd0a09b9 by BellCodeEditor

save project

parent 94ec5494
Showing with 12 additions and 5 deletions
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen()
pen.pensize(5) pen.pensize(5)
pen.pencolor("green") pen.pencolor("red")
len=screen.textinput("爱心尺寸","直径是多少?")
wangyisima=int(len)
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(2*wangyisima)
pen.circle(50,180) pen.circle(wangyisima,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(wangyisima,180)
pen.forward(100) pen.forward(wangyisima*2)
pen.penup()
pen.goto(100,-100)
pen.write("小破游四周年快乐",font=("Times",13,"normal"))
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