en_text = "The first step is one of awareness. It will be hard to make a change to positive thinking without being acutely intimate with the thoughts that run through your mind. Recently, I was amazed to discover deep buried emotions from negative thoughts that I had for fewer than 10 minutes. Without awareness, I would have carried the hurt and anger inside. Awareness helped me to bring them out to the open for me to deal with."
en_text = en_text.replace(',',' ').replace('.',' ')
text = en_text.split()
d = "to"
c=0
for i in text:
if i in d:
c+=1
print(d,c)
二、一、统计en_text中to的出现次数
最新推荐文章于 2024-09-27 10:11:28 发布