作业
text = "Hello Tom, Hello Mario, Hello Sam. Let's play Super Mario."
text = text.replace(',','').replace('.','')
text = text.split()
setword = set(text)
for i in setword:
count = text.count(i)
print(i,count)
作业
text = "Hello Tom, Hello Mario, Hello Sam. Let's play Super Mario."
text = text.replace(',','').replace('.','')
text = text.split()
setword = set(text)
for i in setword:
count = text.count(i)
print(i,count)