反復プロセスの各列挙型クラスのメンバーは列挙を生成します。

輸入列挙型
クラスBugStatus(enum.Enum):
   
    新しい= 7
    不完全= 6
    無効= 5
    wont_fix = 4
    IN_PROGRESS = 3
    fix_committed = 2
    fix_released = 1
   
BugStatusにおけるステータス:
    プリント( '{15} = {}'形式(ステータス。名前、status.value))
-------------------------------------------------- ------------------
 
新しい= 7 
不完全= 6 
無効= 5 
wont_fix = 4 
IN_PROGRESS = 3 
fix_committed = 2 
fix_released = 1

おすすめ

転載: www.cnblogs.com/niaocaizhou/p/11672070.html