Alternatively, we can skip giving values by hand, and use the auto() magic function: from enum import Enum, auto class Color(Enum): RED: int ...
確定! 回上一頁