“while循环。执行基于一个条件的重复操作” 这句话如何理解?
写个例子吧!
i = 0 while i <10: i=i+1 print("i="+str(i))
while 循环基于的条件: i < 10
执行的重复操作:
i=i+1 print("i="+str(i))