• 2022-06-07
    Given an English text, write a function count_len to count the frequencies of words of given length. The test string is 'Life is short, you need Python', count_len(4) will return 2. 定义函数count_len统计输入的英文文本中参数给定长度的单词出现的次数。 输入:'Life is short, you need Python.' count_len(5)输出:1 count_len(4)输出:2