Commit 234c1b87 by BellCodeEditor

save project

parent 34cb4d0d
Showing with 22 additions and 0 deletions
import turtle
import random
pen=turtle.Pen()
screen=turtle.Screen()
lan=screen.textinput("画爱心","你想要多大的爱心?")
lan1=int(lan)
pen.penup()
pen.goto(100,-90)
pen.write("hi,诺伊\n用python死而电子贺卡真是太要去李\n我也喜欢python\n秋实",font=("Times",10,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
pen1.left(45)
pen1.forward(lan1*2)
pen1.circle(lan1,180)
pen1.right(90)
pen1.circle(lan1,180)
pen1.forward(lan1*2)
pen1.hideturtle()
turtle.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