多重if 与 switch case的区别

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

switch case:只能做等值操作

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