第一个简单的python文本过滤器。
#敏感词过滤器
def text_creat(name,msg):
desktop_path = 'C:/Users/lenovo/Desktop/';
full_path = desktop_path + name + '.txt';
file = open(full_path,'w');
file.write(msg);
file.close();
print('Done');
def text_filter(word, censored_word='lame', changed_word='Awesome'):
return word.replace