Commit cbab89cf by BellCodeEditor

auto save

parent 32813c95
Showing with 16 additions and 11 deletions
...@@ -4,7 +4,7 @@ screen=turtle.Screen() ...@@ -4,7 +4,7 @@ screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=screen.textinput("提示","你想要多大的气球") len=screen.textinput("提示","你想要多大的气球")
lovesize=int(len) lovesize=int(len)
len=100 len=90
pen.pendown() pen.pendown()
pen.pensize(5) pen.pensize(5)
pen.pencolor("blue") pen.pencolor("blue")
...@@ -16,7 +16,7 @@ pen.circle(len,180) ...@@ -16,7 +16,7 @@ pen.circle(len,180)
pen.forward(2*len) pen.forward(2*len)
turtle.done() turtle.done()
pen=turtle.Pen() pen=turtle.Pen()
pen.goto(100,-100) pen.goto(100,0)
pen.write("你好\n洛伊.",font=("Times",30,"normal")) pen.write("你好\n洛伊.",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
pen.penup() pen.penup()
......
...@@ -2,17 +2,21 @@ import turtle ...@@ -2,17 +2,21 @@ import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
pen=turtle.Pen() len=screen.textinput("提示","你想要多大的气球")
lovesize=int(len)
len=90
pen.pendown()
pen.pensize(5) pen.pensize(5)
pen.pencolor("biue") pen.pencolor("blue")
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(2*len)
pen.circle(50,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(len,180)
pen.forward(100) pen.forward(2*len)
pen.write("huhdhehe",font=("Times",30,"normal"))
import turtle import turtle
screen=turtle.Screen() pen=turtle.Pen()
screen.bgcolor("light blue") pen.goto(100,0)
pen.penup()
pen.write("huhdhehe",font=("Times",30,"normal"))
turtle.done() 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