Python checkio Monkey Typing解决方案

来源:互联网 发布:正版cad软件多少钱 编辑:程序博客网 时间:2024/06/05 02:48

def count_words(text, words):

    count = 0
    for word in words:
        if text.lower().count(word):
            count +=1
    return count