📜  l1=[122, 5, 9, 4] l2=[991, 4, 8, 3] x=[l1[i]-l2[i] for i in range(abs(len(l1)), abs(len (l2)))] print (x) - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:31.509000             🧑  作者: Mango

代码示例1
l1=[122, 5, 9, 4]
l2=[991, 4, 8, 3]

x=[l1[i]-l2[i] 
   for i in range(abs(len(l1)), abs(len(l2)))]

print (x)