多分支结构

if

elif

...

else

成绩:

if score >= 90 and score <= 100:

python中可以写成:

if 90 <= score <= 100:

 

posted @ 2021-08-21 21:42  shawn4868  阅读(179)  评论(0)    收藏  举报