摘要: def censor(text, word): text_backup = "" text_i = 0 word_len = len(word) text_len = len(text) while(True): text_to = text_i + word_len if text_i < text_len: if text_to <= text_len: if text[text_i:text_to] == word: text_i += wo... 阅读全文