如何通过删除python中的重复字符转换为正确的英语单词假设我想将数据中的“loooook”转换为“look”,我可以使用正则表达式: def word_repeat_clean(data): data=re.sub(r'(.)\1+',r'\1\1' ...2024-06-09 已阅读: n次