Commit e5c762b5 by BellCodeEditor

save project

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