Modify the exception handling in Java and Python.

This commit is contained in:
krahets
2023-04-23 03:41:39 +08:00
parent 7e59e2c7fb
commit 3590262c7e
14 changed files with 35 additions and 28 deletions

View File

@@ -39,4 +39,3 @@ if __name__ == "__main__":
# 层序遍历
res: list[int] = level_order(root)
print("\n层序遍历的节点打印序列 = ", res)
assert res == [1, 2, 3, 4, 5, 6, 7]