keyword = '你好' # 过滤掉的文本
text = input('请输入需要过滤的文本段:')
for word in keyword:
if word in text:
text = text.replace(word, '*') # 将要过滤的文本用 * 号替代
print(text)
【大学生Python】关键字过滤
最新推荐文章于 2025-10-02 14:20:40 发布
博客摘要未给出,请提供
183

被折叠的 条评论
为什么被折叠?



