我有一个清单:
input = ['a','b','c','a','b','d','e','d','g','g']
我想要列表中除重复项之外的所有元素的索引。
output = [0,1,2,5,6,8]
python algorithm search
algorithm ×1
python ×1
search ×1