我有一个看起来像这样的二维数组:
[[10, 20, 30, S1]
[10, 20, 30, S1]
[10, 20, 30, S1]
[50, 70, 80, G1]
[50, 70, 80, G1]
[50, 70, 80, G1]]
我想过滤掉每个子数组的第 4 个值的每个“非第一次”出现,如下所示:
[[10, 20, 30, S1]
[10, 20, 30]
[10, 20, 30]
[50, 70, 80, G1]
[50, 70, 80]
[50, 70, 80]]
这怎么可能?提前致谢