# -*- encoding: utf-8 -*-
'''
author by Vicky 2019-04-20
'''
#打印下列句子中每个单词出现的次数:sentence='Hello hello how how are you'
sentence='hello hello how how are you'
sentence_list=sentence.split(' ')
word={}
for i in sentence_list:
word[i] = sentence_list.count(i)
print(sentence_list)
print(word)