多重if 与 switch case的区别

多重if:可以做等值操作也可以做区间操作

switch case:只能做等值操作

posted @ 2019-03-20 14:32  Penphy  阅读(371)  评论(0)    收藏  举报