1. 统计list中各个元素索引值:
def Dict_Count(self, lis):
dic = {}
index = 0
for key in lis:
if key not in dic:
dic[key] = [index]
else:
dic[key].append(key)
index += 1
return dic