示例#1
0
 def __setitem__(self, k, v):
     self.data[uni(k)] = v
示例#2
0
 def __delitem__(self, k): 
     del self.data[uni(k)]
示例#3
0
 def __missing__(self, k):
     v = []
     self[uni(k)] = v
     return v
示例#4
0
 def __getitem__(self, k):
     return self.data.get(uni(k)) or self.__missing__(k)
示例#5
0
 def __delitem__(self, key):
     del self.data[uni(key)]
示例#6
0
 def __setitem__(self, key, value):
     self.data[uni(key)] = value
示例#7
0
 def __missing__(self, key):
     v = StringCounter()
     self[uni(key)] = v
     return v