list1=["one","two","three"] list2=["one","three","two"] list1=sorted(list1) list2=sorted(list2)# 不改变list本身 print(list1==list2) 1. 2. 3. 4. 5.