sh_02_ first while loop

 

sh_02_ first while loop

 

1  # print the Python 5 times the Hello 
2  # 1. the definition of an integer variable, the number of recording cycles 
. 3 I = 1
 . 4  
5  # 2. start the cycle 
. 6  the while I <=. 3 :
 . 7  
. 8      # 1> desired code executed within the loop 
9      Print ( " the Hello the Python " )
 10  
. 11      # 2> processing counter 
12 is      # i = i +. 1 
13 is      i =. 1 +
 14  
15  # 3. look, the loop is finished, the value of the counter i is the number of 
16  Print ( " end of cycle after, I = D% " % I)

Guess you like

Origin www.cnblogs.com/shaohan/p/11496432.html