python 字符串比较

sStr1 = 'strch'
sStr2 = 'strchr'
print cmp(sStr1,sStr2)##-1

posted @ 2018-12-04 10:59  巨象  阅读(281)  评论(0)    收藏  举报