Commit a9205642 by BellCodeEditor

save project

parent 1037555e
Showing with 21 additions and 6 deletions
import turtle
screen=turtle.Screen()
pen=turtle.Pen()
pen.write("诺依,\nturtle真好用,\n我也会在画布上写字了!",font=("仿宋",30,"normal"))
pen.hideturtle()
turtle.done()
from turtle import*
len = 60
screen=Screen()
len = screen.textinput("提示","请输入爱心大小哦~")
len = int(len)
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