enum CompassDirection { case Nort...
发布于 2022-03-02 17:08:39
enum CompassDirection { case North,South,East,West } var direction: CompassDirection = .East switch direction { case .North: print("North") case .South: print("South") case .East: print("East") case .West: print("West") default: print("no") }
针对以上代码说法正确的是
登录后免费查看答案
关注者
0
被浏览
4