how to create a class in python which would store a tree
I want to make a class in python, which would store a tree.Kee开发者_如何学编程ps taking three inputs the main node the left node and right node and stores it in such a way that later I can print it in tree format.
this should help http://knuth.luther.edu/~pythonworks/Source/chap5/
精彩评论