开发者

how to create a class in python which would store a tree

开发者 https://www.devze.com 2023-01-16 23:43 出处:网络
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 i

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/

0

精彩评论

暂无评论...
验证码 换一张
取 消