实现这个功能我相信大家一定明白他的意思了,很简单了,下面的代码大家参考使用吧
print strcmp(str1,str2)print cmp(str1,str2)
使用python实现strcmp函数功能示例
原文:http://www.jb51.net/article/48415.htm