What is the most efficient way to compare a string to Enums?

前端 未结 0 781
臣服心动
臣服心动 2020-12-04 13:48

I have the following Enum class:

class LabelEnum(str, Enum):
    ENUM_ONE = "Enum One"
    ENUM_TWO = "Enum Two"
    ENUM_THREE = "En         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题