You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
434 B
26 lines
434 B
# -*- coding: utf-8 -*-
|
|
|
|
from enum import Enum
|
|
|
|
|
|
class TaskStatus(Enum):
|
|
WAITING = 1
|
|
RUNNING = 2
|
|
COMPLETED = 3
|
|
FAIL = 4
|
|
|
|
def __eq__(self, other):
|
|
return self.value == other
|
|
|
|
|
|
class Platform(Enum):
|
|
XIN_HUA = "xin_hua"
|
|
REN_MIN = "ren_min"
|
|
YANG_SHI = "yang_shi"
|
|
|
|
def __eq__(self, other):
|
|
return self.value == other
|
|
|
|
|
|
if __name__ == '__main__':
|
|
print(Platform.REN_MIN == "ren_min")
|