我知道Python不是Haskell或Ocaml,但这是在Python(2或3)中定义代数数据类型的最佳方法吗?谢谢!
python algebraic-data-types
algebraic-data-types ×1
python ×1