Commit e5c762b5 by BellCodeEditor

save project

parent 5ff4740d
Showing with 14 additions and 13 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("blue")
screen.bgcolor("pink")
len=screen.textinput("提示","你想要多大的爱心?")
a=int(len)
b=turtle.Pen()
b.penup()
b.goto(100,-100)
b.write("Hi,诺伊~\n用python写电子贺卡真是太有趣了~\n我也喜欢python~\n——悟空",font=("Times",18,("normal")))
b.hideturtle()
a = turtle.Pen()
a.pensize(5)
a.pencolor("red")
a.left(45)
a.forward(100)
a.circle(50,180)
a.right(90)
a.circle(50,180)
a.forward(100)
a.hideturtle()
\ No newline at end of file
c = turtle.Pen()
c.pensize(5)
c.pencolor("red")
c.left(45)
c.forward(100)
c.circle(a,180)
c.right(90)
c.circle(a,180)
c.forward(2*a)
c.hideturtle()
\ 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