最长公共前缀仅在字符串中给出0索引我使用这个函数来获取两个字符串中最长的公共前缀,我使用的是python2.7.13版本,但是这个函数只提供0索引 def longestcommonPrefix(s1, s2): i = 0 whil ...2024-07-01 已阅读: n次