Commit 5c0e44f7 by BellCodeEditor

auto save

parent d08cfb92
Showing with 16 additions and 8 deletions
import turtle import turtle
# pen=turtle.Pen() screen=turtle.Screen()
# pen.write("你好,\nhello,\nhi.",font=("宋体",20,"normal")) screen.bgcolor("pink")
# pen.hideturtle() pen=turtle.Pen()
# turtle.done() pen.penup()
pen.goto(100,-100)
pen.write("你好,\nhello,\nhi.",font=("宋体",20,"normal"))
pen.hideturtle()
size=screen.textinput("提示","你想要多大的爱心呀?")
len=int(size)
pen2=turtle.Pen() pen2=turtle.Pen()
pen2.pensize(5) pen2.pensize(5)
pen2.color("red") pen2.color("red")
pen2.left(45) pen2.left(45)
pen2.forward(100) pen2.forward(len*2)
pen2.circle(50,180) pen2.circle(len,180)
pen2.right(90) pen2.right(90)
pen2.circle(50,180) pen2.circle(len,180)
pen2.forward(100) pen2.forward(len*2)
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