【问题标题】:I have a list that returns two values at one position of the array我有一个列表,它在数组的一个位置返回两个值 【发布时间】:2021-11-09 20:42:33 【问题描述】: 我有一个列表,它在数组的一个位置返回两个值。 在示例中是数组 c 的 0 位置。 我想知道如何检索第一个值,然后是第二个值 谢谢 【问题讨论】: 请提供足够的代码,以便其他人更好地理解或重现问题。 标签: python arrays lis 【解决方案1】: c[0] 获取数组中的第一对。 如果您想要第一对中的第一项,您可以只使用c[0][0] 和c[0][1] 作为第二项。 【讨论】: