switch case


  1. default 可以编写在任意位置,但是建议编写在所有case后
  2. switch case只能做等值操作,做区间操作的时候要用if



posted @ 2020-01-02 20:21  火车没有火  阅读(265)  评论(0编辑  收藏  举报