# 当两个列表的元素相同时
# arr1 = [2,3,1,3,2,4,6,9,2]
# arr2 = [2,1,4,3,9,6]
# arr1.sort(key=arr2.index)
# print(arr1)
# 当俩个列表元素不完全相同时
arr3 = [2,3,1,3,2,4,6,9,2,10,10,11,12]
arr4 = [2,1,4,3,9,6]
# arr4 += sorted(set(arr3)-set(arr4))
arr = set(arr3)-set(arr4)
arr = list(arr)
arr.sort()
print(arr)
arr4.extend(arr)
print(arr4)
arr3.sort(key=arr4.index)
print(arr3)