一.列表内容对比 方式一: import operatorl1 = ['a','b','c']l2 = ['a','d','e']print(operator.lt(l1,l2))运行结果为True 方式二: l1 = ['a','b','c']l2 = ['a','d','e']s1 = set(l1)s2 = set(l2)# s1&s2 #列表相同部分if s1^s2: print(s1^s2) print('有不一样的')else: print('都一样')运行结果:{'d', 'b',…