switch的基本使用 基本语法: switch (x) { case 表达式1: 语句1 break; case 表达式2: 语句2 break; case 表达式3: 语句3 break; default表达式1&