python流程控制语句

while循环图转载自:http://www.runoob.com/python/python-while-loop.html 注:python中的函数没有{ },所以语句之间都是以 tab键进行缩进来确定层次结构的,另每个条件句末尾都是以冒号 :  结尾 1、条件判断 if 基本格式: if 判断条件: 执行语句..... elif 判断条件: 执行语句..... else: 执行语句.....
相关文章
相关标签/搜索