假设我们有一个升序排列的列表[1, 2, 3, 4, 5, 6, 7],我们可以通过调用build_tree函数建立一个二叉树,并进行遍历。 nums=[1,2,3,4,5,6,7]root=build_tree(nums)print("前序遍历结果:",preorder_traversal(root))print("中序遍历结果:",inorder_traversal(root))print("后序遍历结果:",postorder...