Python enum 与 int 之间的转换
摘要:
class eOperator(enum.Enum): unknown = 0 equal = 1 gt = 2 gte = 3 lt = 4 lte = 5 注意千万不要写成: class eOperator(enum.Enum): unknown = 0, equal = 1, gt = 2, 阅读全文
posted @ 2024-08-14 22:11 norsd 阅读(10) 评论(0) 推荐(0) 编辑