1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| class Action(object): is_fail = False
def __init__(self, sid, fid): self.id = sid self.fid = fid def get_id(self): return self.id
def get_fid(self): return self.fid
test_action = Action(sid=sid, fid=fid) print(test_action.get_id()) print(Action.is_fail)
|