代码如下:
def strcmp(str1,str2):
i = 0
while i
if outcome:
print outcome
return outcome
i +=1
return cmp(len(str1),len(str2))
str1='dfdcd'
str2='dfdc'
print strcmp(str1,str2)
print cmp(str1,str2)