Commit a9205642 by BellCodeEditor

save project

parent 1037555e
Showing with 21 additions and 6 deletions
import turtle from turtle import*
screen=turtle.Screen() len = 60
pen=turtle.Pen() screen=Screen()
pen.write("诺依,\nturtle真好用,\n我也会在画布上写字了!",font=("仿宋",30,"normal")) len = screen.textinput("提示","请输入爱心大小哦~")
pen.hideturtle() len = int(len)
turtle.done() screen.bgcolor("pink")
write("诺依,\nturtle真好用,\n我也会在画布上写字了!\n ——悟空",font=("仿宋",30,"normal"))
hideturtle()
penup()
goto(-180,80)
pendown()
pensize(5)
pencolor("red")
left(45)
fd(len*2)
circle(len,180)
right(90)
circle(len,180)
fd(len*2)
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