分类: Python/Ruby
2009-04-13 21:08:18
if
语句的基本语法if(expression one): # Action to take if expression one evaluates True else: # Action to take if all expression one evaluates False |
while (expression): # statements to execute while loop expression is True else: # statements to execute when loop expression is False |
for item in container: # action to repeat for each item in the container else: # action to take once we have finished the loop. |