阅读背景:

python中的内建函数之cmp()

来源:互联网 
a=1
b=1
c=2
d=-1
e=-10
print cmp(a,b),
print cmp(a,c),
print cmp(a,d),
print cmp(a,e)
#output 0 -1 1 1
a=1
b=1
c=2
d=-1
e=-10
print cmp(a,b),
print cm



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: