Commit 2c68b884 by BellCodeEditor

save project

parent f0a02fbd
Showing with 18 additions and 3 deletions
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你好呀我是小阳老师!",font=("Times",30,"normal")) pen.penup()
pen.goto(0,-100)
pen.write("祝你生日快乐!",font=("Times",20,"normal"))
pen.hideturtle() pen.hideturtle()
turtle.done() pen1=turtle.Pen()
\ No newline at end of file pen1.pensize(10)
pen1.pencolor("red")
len=screen.textinput("提示","你想要多大的爱心呀?")
a=int(len)
pen1.left(45)
pen1.forward(2*a)
pen1.circle(a,180)
pen1.right(90)
pen1.circle(a,180)
pen1.forward(2*a)
pen1.hideturtle()
turtle.done()
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