Commit fb634054 by BellCodeEditor

save project

parent a759773f
Showing with 13 additions and 7 deletions
...@@ -4,20 +4,22 @@ screen=turtle.Screen() ...@@ -4,20 +4,22 @@ screen=turtle.Screen()
screen.bgcolor("light pink") screen.bgcolor("light pink")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(190,-250) pen.goto(180,-250)
pen.write("游子吟\n[唐]孟郊\n慈母手中线,\n游子身上衣。\n临行密密缝,\n意恐迟迟归。\n谁言寸草心,\n报得三春晖。",font=("Times",20,"normal")) pen.write(" 游子吟 \n [唐]孟郊 \n慈母手中线,\n游子身上衣。\n临行密密缝,\n意恐迟迟归。\n谁言寸草心,\n报得三春晖。",font=("Times",20,"normal"))
pen.hideturtle() pen.hideturtle()
len=screen.textinput("提示","你想要多大的爱心:")
lovesize=int(len)
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pencolor("red") pen1.pencolor("green")
pen1.pensize(10) pen1.pensize(10)
pen1.fillcolor("red") pen1.fillcolor("red")
pen1.begin_fill() pen1.begin_fill()
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(lovesize*2)
pen1.circle(50,180) pen1.circle(lovesize,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(lovesize,180)
pen1.forward(100) pen1.forward(lovesize*2)
pen1.end_fill() pen1.end_fill()
pen1.hideturtle() pen1.hideturtle()
turtle.done() turtle.done()
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是:")
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