Commit 52ce7e37 by BellCodeEditor

auto save

parent c27dddb5
Showing with 18 additions and 0 deletions
import turtle
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()
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