Commit f95be5cc by BellCodeEditor

save project

parent 90df092f
Showing with 6 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
t=turtle t=turtle
a=int(input("请输入大小"))
t.bgcolor("lightblue") t.bgcolor("lightblue")
t.penup() t.penup()
t.goto(100,-100) t.goto(100,-100)
...@@ -13,9 +14,9 @@ t.goto(0,0) ...@@ -13,9 +14,9 @@ t.goto(0,0)
t.pendown() t.pendown()
t.pencolor("red") t.pencolor("red")
t.left(45) t.left(45)
t.forward(100) t.forward(2*a)
t.circle(50,180) t.circle(a,180)
t.left(-90) t.left(-90)
t.circle(50,180) t.circle(a,180)
t.forward(100) t.forward(2*a)
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