组合数据类型练习,英文词频统计实例

1、由字符串创建一个作业评分表,做增删改查询统计遍历操作,例如查询第一个3分的下标,统计1分的同学有几个,3分的同学有几个,增删改查等等。

2、字典实例:建立学生学号成绩字典,做增删改查遍历操作。

3.列表,元组,字典,集合的遍历。

 

4.英文词频统计实例

news = '''When I was young I'd listen to the radio
 Waiting for my favorite songs
 When they played I'd sing along,
 It make me smile.
  
Those were such happy times and not so long ago
 How I wondered where they'd gone.
 But they're back again just like a long lost friend
 All the songs I love so well.
 Every shalala every wo'wo
 still shines.
  
Every shing-a-ling-a-ling that they're starting to sing
 so fine
  
When they get to the part
 where he's breaking her heart
 It can really make me cry
 just like before.
 It's yesterday once more.
 (Shoobie do lang lang)
 (Shoobie do lang lang)
 Looking bak on how it was in years gone by
 And the good times that had
 makes today seem rather sad,
 So much has changed.
  
It was songs of love that I would sing to them
 And I'd memorise each word.
 Those old melodies still sound so good to me
 As they melt the years away
 Every shalala every wo'wo still shines
  
Every shing-a-ling-a-ling that they're startingTo sing
 so fine
 All my best memorise come back clearly to me
 Some can even make me cry
 just like before.
 It's yesterday once more.
 (Shoobie do lang lang)
 Every shalala every wo'wo still shines.
 Every shing-a-ling-a-ling that they're starting to sing
 so fine
 Every shalala every wo'wo still shines.
 Every shing-a-ling-a-ling that they're starting to sing'''
复制代码

 

转载于:https://www.cnblogs.com/zhibao/p/7562837.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值