* [Update] 修改心跳偶人时间

* [Update] 修改Node比较

* [Bugfix] 修复bug
This commit is contained in:
老广
2018-12-21 15:47:52 +08:00
committed by GitHub
parent ac9178cb93
commit e7725e6910
2 changed files with 5 additions and 3 deletions

View File

@@ -49,7 +49,9 @@ class TreeNode:
return False
elif not self.isParent and other.isParent:
return True
return self.id > other.id
if self.pId != other.pId:
return self.pId > other.pId
return self.name > other.name
def __eq__(self, other):
return self.id == other.id