我有两个长度相同的python列表:
listA = [7,6,3,2,1,4,5]
listB = [a,b,c,d,e,f,g]
是它们排序listA并以相同方式更改listB值的某种方式(可能是简单的函数).方法
listA_new = [1,2,3,4,5,6,7]
和
listB_new = [e,d,c,f,g,b,a]
关于删除副本的相同问题.E、 g.如果我有一些 list
listC = [1,1,4,4,5,6,7]
和
listD = [a,b,c,d,e,f,g]
结果应该是:
listC_new = [1,4,5,6,7]
和
listD_New = [a,c,e,f,g]