摘要:
#!/usr/bin/envpython2#-*-coding:UTF-8-*-34#构建节点5classNode:6def__init__(self):7self.map={}8defcontain(self,key):9returnself.map.__contains__(key)10def__getitem__(self,key):11returnself.map[key]12def__setitem__(self,key,value):13self.map[key]=value1415classItem:16def__init__(self,key):17self.key=key18 阅读全文