不要序列化对象本身,而是把数据从对象中提取出来,放到一个字典里,然后再序列化那个字典。
Rather than serializing the object, pull the data out of the object and put it into a dictionary. Then serialize the dictionary.
在接下来两篇文章中,我们将探讨更强大、更方便的数据结构的应用:有序列表和随机访问字典。
In the next two articles, we'll explore the use of much more powerful and convenient data structures: ordered lists and random-access dictionaries.
结果应该是一个字典,从前缀到一个可能的后缀组成的序列的映射。
The result should be a dictionary that maps from prefixes to a collection of possible suffixes.
应用推荐