Commit 1a86ed55 by BellCodeEditor

save project

parent 966f4c3c
Showing with 9 additions and 1 deletions
import turtle
screen=turtle.Screen()
screen.textinput("()","你的名字是:zhajnj")
turtle.done()
lovesize
\ No newline at end of file
...@@ -8,7 +8,8 @@ pen1.goto(100,0) ...@@ -8,7 +8,8 @@ pen1.goto(100,0)
pen1.write("你好呀,\n很多很多",font=("times",13,"normal")) pen1.write("你好呀,\n很多很多",font=("times",13,"normal"))
pen1.hideturtle() pen1.hideturtle()
pen2=turtle.Pen() pen2=turtle.Pen()
len=70 p=turtle.textinput("提示","输入大小")
len=int(p)
pen2.pensize(10) pen2.pensize(10)
pen2.pencolor("red") pen2.pencolor("red")
pen2.left(45) pen2.left(45)
...@@ -18,3 +19,4 @@ pen2.right(90) ...@@ -18,3 +19,4 @@ pen2.right(90)
pen2.circle(len,180) pen2.circle(len,180)
pen2.forward(2*len) pen2.forward(2*len)
turtle.done() 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