枚举是一种有穷序列集的数据类型; 使用关键字enum定义一个枚举; 枚举常用于代替常量,控制 ... switch (currentSeason) { case Season.spring: print('1-3月'); break; ...
確定! 回上一頁