Skip element while converting Enum to List

前端 未结 0 1283
醉酒成梦
醉酒成梦 2020-12-02 22:06

I have following class defined:

class MyEnum(IntEnum):
    NONE=-1
    A=0
    B=1
    C=2

So the result of list(MyEnum) is obvi

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