Python学习笔记-Iterative programs

Iterative programs:

- Choose variable that "count"

- initialize outside the loop

- set up end test (variable)

- construct block 
  -change variable

- what to do when loop done

 

For循环

for :

  suite

 

While循环:使用while循环时,必须考虑“状态信息”,这就要求使用一个技术标识符。 

 

Branch

If语句

if 某个条件满足:

  “true"组

else:

  "false"组

posted @ 2015-05-25 20:13  isister  阅读(233)  评论(0编辑  收藏  举报