o 流程控制

  • switch现在可以支持int和string

  • foreach:简化的for,但是不能取代for

    • 语法:

      for(循环变量x : 遍历对象obj)
      {

      }

  • break只能跳出一层循环