Skip to content

Commit d8d6633

Browse files
committed
comment
1 parent 5ea60df commit d8d6633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/14_树与二叉树/btree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def preorder_trav_use_stack(self, subtree):
7373
s.push(subtree)
7474
while not s.empty():
7575
peek = s.pop()
76-
print(peek.data)
76+
print(peek.data) # 注意这里我用了 print,你可以用 yield 产出值然后在调用的地方转成 list
7777
if subtree.left:
7878
s.push(subtree.left)
7979
if subtree.right:

0 commit comments

Comments
 (0)