已采纳回答 / 寒金鱼
不等于num的时候执行default,当num=1的时候执行case 1,当它执行之后没有遇见break等停止标识他会继续执行下面的代码,比如case 2 的输出。
2016-10-30