摘要: #找出最长公共前缀strs = ["dog","racecar","car"] #"" strs = ["flower","flow","flight"] #"fl"方法一: lenstrs=[] for i in strs: lenstrs.append(len(i)) lenstrs=sorte 阅读全文
posted @ 2021-09-03 09:09 呆呆蒙蒙 阅读(531) 评论(0) 推荐(0) 编辑