这就是我做的.在python中有更好的方法吗?
for k in a_list: if kvMap.has_key(k): kvMap[k]=kvMap[k]+1 else: kvMap[k]=1
谢谢
python
python ×1