switch 这种表达式在很多语言中都有,比如java, C等待, 使用switch比使用if else 来得方便,来得清晰。 使用语法很简单: switch(n) { case 1: 执行代码块1 break; ...
確定! 回上一頁