Commit 1ee4c8b8 by BellCodeEditor

save project

parent fe6427f7
Showing with 11 additions and 8 deletions
# 利用write() # 利用write()
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("gold")
# creen=tusrtle.Screen() # creen=tusrtle.Screen()
# screen.bgcolor("light blue") # screen.bgcolor("light blue")
# len=screen.textinput("100","100") # len=screen.textinput("100","100")
...@@ -20,10 +22,11 @@ import turtle ...@@ -20,10 +22,11 @@ import turtle
# pen.circle(len,180) # pen.circle(len,180)
# pen.forward(2*len) # pen.forward(2*len)
# turtle.done() # turtle.done()
pen1=turtle.pen1 pen1=turtle.Pen()
pen.pencolor("red") pen1.pencolor("red")
pen.pensize(5) pen1.pensize(5)
left(45) pen1.left(45)
forword(100) pen1.forward(100)
right(-45) pen1.right(-45)
forword(100) pen1.forward(100)
\ No newline at end of file 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