我有一个包含数百万个数字的列表。我想知道整个列表中有序列表中每个数字之间的差异是否相同。list_example=[0,5,10,15,20,25,30,35,40,..等等等等]执行此操作的最佳方法是什么?我的尝试:importcollectionslist_example=[0,5,10,15,20,25,30,35,40]count=collections.Counter()forx,yinzip(list_example[0::],list_example[1::]):printx,y,y-xcount[y-x]+=1iflen(count)==1:print'Differen