Python's enum type is a useful building block for creating semantic ... GREEN.value == 2 def is_red(c: Color) -> bool: return c is Color.RED.
確定! 回上一頁