Commit 9a7b9f7c by BellCodeEditor

save project

parent 215f065c
Showing with 23 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen = turtle.Pen()
pen.penup()
pen.goto(100,-99)
pen.write("九月九日忆山东兄弟\n [唐]王维 \n \n 独在异乡为异客,\n 每逢佳节倍思亲。\n 遥知兄弟登高处,\n 遍插茱萸少一人。",font=("Times",18,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
screen=turtle.Screen()
len = screen.textinput("提示","你要多大的爱心:")
a = int(len)
pen1.hideturtle()
pen1.pensize(10)
pen1.pencolor("pink")
pen1.left(45)
pen1.forward(a)
pen1.circle(a/2,181-1)
pen1.right(90)
pen1.circle(a/2,189-9)
pen1.forward(a)
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