Python: Have default enum value

前端 未结 0 1578
情书的邮戳
情书的邮戳 2020-11-22 01:28

I would like to have a default value for an enum. See my example code below:

from enum import Enum


class Mclaren(Enum):
    p1 = "P1"
    gt = &q         


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