这是一道统计目标句子中单词组合出现次数的题目,输出的是一个字典:
wordstring = 'it was the best of times it was the worst of times \
it was the age of wisdom it was the age of foolishness'
# write your code below
def get_pair_freq1(wordstring):
wordlist = wordstring.split(" "
这是一道统计目标句子中单词组合出现次数的题目,输出的是一个字典:
wordstring = 'it was the best of times it was the worst of times \
it was the age of wisdom it was the age of foolishness'
# write your code below
def get_pair_freq1(wordstring):
wordlist = wordstring.split(" "