x=0
while True:
x += 1
print(x)
if x == 100000:
break
"""
for循环和while循环的关系
1.for循环注重次数 while循环注重条件
2.for循环能做的while循环都能做 while循环能做的for循环不一定能做
3.但是for循环 用的更多
"""
import turtle
pen = turtle.Pen()
pen.color('pink')
"""
for x in range(100):
pen.speed(20)
pen.circle(50)
pen.left(100)
"""
count = 0
while count < 1500:
count= count+1
pen.speed(20)
pen.circle(count)
pen.left(10)
turtle.done()
while循环
最新推荐文章于 2024-06-18 20:58:51 发布