枚举的转换

1、字符串转换成枚举:

Code

2、数字转换成枚举:

Code
原文地址:https://www.cnblogs.com/linyechengwei/p/1369685.html