Commit 66610c4a by BellCodeEditor

auto save

parent 2bfdf80c
Showing with 29 additions and 0 deletions
import turtle
t=turtle.Turtle()
t.hideturtle()
t.penup()
t.goto(-50,-50)
t.pendown()
t.width(50)
t.color('red')
t.forward(100)
t.circle(50,180)
t.forward(100)
t.circle(50,180)
t1=turtle.Turtle()
t1.shape('turtle')
t1.penup()
t1.goto(-50,-50)
t1.speed(1)
a=input('请输入海龟跑多少圈')
a=int(a)
for x in range(a):
print('当前是第'+str(x+1)+'圈')
t1.forward(100)
t1.circle(50,180)
t1.forward(100)
t1.circle(50,180)
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