Commit 6cfa74b8 by BellCodeEditor

save project

parent c4654a37
Showing with 7 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle as t import turtle as t
import random
len=random.randint(50,150)
t.pen() t.pen()
t.penup() t.penup()
t.goto(100,-100) t.goto(100,-100)
...@@ -10,10 +12,10 @@ t.penup() ...@@ -10,10 +12,10 @@ t.penup()
t.goto(0,0) t.goto(0,0)
t.pendown() t.pendown()
t.right(-45) t.right(-45)
t.forward(100) t.forward(len*2)
t.circle(50,180) t.circle(len,180)
t.right(90) t.right(90)
t.circle(50,180) t.circle(len,180)
t.forward(100) t.forward(len*2)
t.hideturtle() t.hideturtle()
t.done() t.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