sStr1 = 'strch'sStr2 = 'strchr'print cmp(sStr1,sStr2)##-1 转载于:https://www.cnblogs.com/MaxElephant/p/10062835.html