mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
parent
ecfeb7f095
commit
70a6b49821
246 changed files with 926 additions and 962 deletions
|
@ -236,7 +236,7 @@ Guido's binary tree example.
|
|||
... self.right = right
|
||||
...
|
||||
... def __repr__(self, level=0, indent=" "):
|
||||
... s = level*indent + `self.label`
|
||||
... s = level*indent + repr(self.label)
|
||||
... if self.left:
|
||||
... s = s + "\\n" + self.left.__repr__(level+1, indent)
|
||||
... if self.right:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue