第三次

str='''Baby, baby, baby nooo 
My baby, baby, baby noo 
My baby, baby, baby nooo 
I thought youd always be mine mine 
Baby, baby, baby nooo 
My baby, baby, baby noo 
My baby, baby, baby nooo'''
print(str);

print(str.lower());

print(str.split())

print("统计每个单词出现的次数为:")
strSet=set(str.split())
for word in strSet:
   print(word,str.split().count(word))

 

posted @ 2018-09-22 21:59  dalin可乐  阅读(138)  评论(0编辑  收藏  举报