hutils icon indicating copy to clipboard operation
hutils copied to clipboard

增加新方法

Open maiyajj opened this issue 1 year ago • 0 comments

class SecretEnum(TupleEnum): SECRET = "secret", "敏感" NO_SECRET = "no_secret", "非敏感"

@ classmethod def member_items(cls) -> Dict: return cls._value2member_map_

>>>print(SecretEnum.member_items()) >>>{'secret': <SecretEnum.SECRET: 'secret'>, 'no_secret': <SecretEnum.NO_SECRET: 'no_secret'>}

maiyajj avatar Jun 28 '24 11:06 maiyajj