假设我有以下变量..。在字符串中查找“坏单词”并只打印出好字符串的最佳方法是什么? bad_words = ['bad0', 'bad1', 'bad2']
#this is where I need help...bad words.#call the check_words method by s
我正在寻找一个字符串处理算法,我已经搜索了它,但找不到一个算法,以满足我的要求。我将用一个例子来解释这个算法应该做什么。有两组词集的定义如下:**Words_in_front**: I am, I enjoy, I love, I amgoing to go
该程序将搜索一组巨大的单词,一旦它找到一个在Words_in_front.Main_Words</e