假设我有 2 个列表:
L1 = [2,4,1,6] L2 = [1,5,2,3]
输出应该是一个新列表,其中包含根据 L1 或 L2 的位置找到的最大数字。
示例输出:
L3 = [2, 5, 2, 6]
怎么做 ?
python list
list ×1
python ×1