let n =10 switch n{ case 0...2: //範圍在0-2之間 } ## enum ##(列舉型態) enum Direction{ case north case east case south case west case unknown } //舉例: var ...
確定! 回上一頁