分支结构

1.if   elif  else,python提供两种语言学法,假如条件是在一个范围内那么可以用and连接,也可以用数学方式来表达

 

 嵌套

 

posted @ 2021-06-25 08:41  masterpiece  阅读(48)  评论(0)    收藏  举报