Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 prettytable 打印我的数据,如下所示:
我以字典的形式存储它,其中每个键是丈夫 ID,值是孩子 ID,与妻子 ID 相同。
我想画出像家谱一样的结构。我不知道怎么做。如果有人可以帮助我以一个小家庭为例,那将非常有用。另外,我想知道字典是否是要使用的正确数据结构。谢谢!