Commit 649c3c4a by BellCodeEditor

save project

parent 7c1c9bf2
Showing with 4 additions and 3 deletions
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=screen.textinput("100","100") len1=screen.textinput("嘻嘻","你喜欢嘻嘻吗?")
len=int(len) len=int(len1)
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你好\nSB.",font=("Times",30,"normal")) pen.write("你好\nSB.",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
...@@ -19,4 +19,4 @@ pen.circle(len,180) ...@@ -19,4 +19,4 @@ pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(len,180) pen.circle(len,180)
pen.forward(2*len) pen.forward(2*len)
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