Commit 25950fd9 by BellCodeEditor

auto save

parent b98832a3
Showing with 18 additions and 6 deletions
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("light yellow")
pen=turtle.Pen() pen=turtle.Pen()
pen.pencolor("light blue") pen.pencolor("light blue")
pen.penup() pen.penup()
...@@ -6,14 +8,15 @@ pen.goto(100,-100) ...@@ -6,14 +8,15 @@ pen.goto(100,-100)
pen.write("Hi,诺依~ ",font=("Times",30,"normal")) pen.write("Hi,诺依~ ",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
pen1=turtle.Pen() pen1=turtle.Pen()
screen=turtle.Screen()
len=screen.textinput("姓名框","你想要什么样子的爱心")
liesawe=int(len)
pen1.pensize(5) pen1.pensize(5)
pen1.pencolor("blue") pen1.pencolor("blue")
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(liesawe*2)
pen1.circle(50,180) pen1.circle(liesawe,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(liesawe,180)
pen1.forward(100) pen1.forward(liesawe*2)
screen=turtle.Screen()
screen.bgcolor("light yellow")
turtle.done() turtle.done()
import turtle
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是:")
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