学习了Python,,1 今天看视频看到里


1 今天看视频看到里面的老师讲了Python的知识 学会了for循环

for i in range(10):

  i+=3

  print("i")

 循环三次

for 循环还有步长

步长只需一步就可以把奇数偶数 ,得出结果 ,有点神奇。

for i in range(1,10,2):

2 while 循环

count=0

while <10:

  print("count:",count)

  count+=10

  breank

  

学习了Python

评论关闭