📅  最后修改于: 2022-03-11 14:46:43.481000             🧑  作者: Mango
from profanity_filter import ProfanityFilter
pf = ProfanityFilter()
pf.censor("That's bullshit!")
# "That's ********!"
pf.censor_word('fuck')
# Word(uncensored='fuck', censored='****', original_profane_word='fuck')