day04-python character formatted output, for loop, break statement, while

A character formatted output

  Placeholder% s s = string

         % D d = digit integer

               % F f = float float, is approximately equal to the fractional

       

Two, for circulation

1, the first implementation of registration for circulation

2, a more concise manner

3, while loop implemented:

while conditions:

After a while when the condition is True, the following code will execute

4、break,continue

      break out of the entire current loop

      continue the end of this cycle, the next cycle continues

 

Guess you like

Origin www.cnblogs.com/xupei1210/p/10935608.html