草稿:Python 判断key 或者值在枚举里 from enum import Enum class testEnum(Enum): key1 = 0 key2 = 1 "key1" in testEnum.__members__ 0 in testEnum._value2member_map_