[英]Get only a sublist with a lowest value at specific index
I've got a list 我有一个清单
[[1, 2, 48.5], [1, 3, 66.7], [1, 4, 32.4]]
and I want to only get a list with the lowest value at index of 2 so that I only get a list like this 我只想得到索引值为2的最小值的列表,这样我就只能得到这样的列表
[1, 4, 32.4]
I have tried messing around with the min() and max() functions but I couldn't figure anything out 我试图弄乱min()和max()函数,但是我什么也搞不清
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.