语法形式: switch(表达式){ case 常量表达式1: 语句1;break; case 常量表达式2: 语句2;break; ... case 常量表达式n: 语句n;break; default: