cmp(x,y)

cmp(x,y) 函数用于比较2个对象,如果 x < y 返回 -1, 如果 x == y 返回 0, 如果 x > y 返回 1。

原文地址:https://www.cnblogs.com/yanhongjun/p/5457111.html