摘要: class Solution: def reorderSpaces(self, text: str) -> str: count=text.count(' ') #字符串中空格的数量 li=text.split() #默认以【空格、tab、换行、回车以及formfeed】为分隔符,将字符串分割为一个 阅读全文
posted @ 2022-09-07 18:01 盗哥泡茶去了 阅读(23) 评论(0) 推荐(0) 编辑