枚举

枚举可以在类外进行, 东南西北1234,默认为int 在名称后加入  : float 可以修改类型

 

可以获取枚举的类型,得到相反的类型...

posted @ 2017-07-24 22:08  sign尊者  阅读(0)  评论(0编辑  收藏  举报