switch语句

switch中的值只能是整数、枚举、字符、字符串
不可使用long、float、double、boolean作为它的数据类型

posted @ 2021-01-06 17:45  LinYanyan  阅读(295)  评论(0)    收藏  举报