您可以使用rawValue来访问标记为Int的枚举类型的序数值。enum SomeEnum: Int { case first case second case third case fourth } print(SomeEnum.third.rawValue) //2