if语句+switch

三种形式:

 

 

 

条件运算福和表达式:

 

 

如果每个情况的后面加上break,就会直接跳出去:

 注意点:

原文地址:https://www.cnblogs.com/souhaite/p/10892851.html