Example 1: get all occurrence indices in list python a_list = [1, 2, 3, 1] indices = [] for i in range(len(a_list)): if a_list[i] == 1: indices.append(i) ...
確定! 回上一頁