zoukankan      html  css  js  c++  java
  • 英语词频统计

    song = '''
      sunday's coming i wanna drive my car
    to your apartment with present like a star
    forecaster said the weather may be rainy hard
    but i know the sun will shine for us
    oh lazy seagull fly me from the dark
    i dress my jeans and feed my monkey banana
    then i think my age how old,skyline how far
    or we need each other in california
    you show me your body before night comes down
    i touch your face and promise to stay ever young
    on this ivory beach we kissed so long
    it seems that the passion's never gone
    you sing me your melody and i feel so please
    i want you to want me to keep your dream
    together we'll run wild by a summer symphony
    this is what we enjoyed not a fantasy
    the tin-man's surfing i wanna try my luck
    to the top of tide rip like just have some drugs
    i know you have no blame for my proud moonish heart
    the golden beatnik park
    oh diamond seashore drag me from the yard
    incredible sunward i watch as you're in photograph
    for camera your smile's so sweet,palm trees' so lush
    would you believe my honey it's califoniahttp
    ''' symbol = list(''',.?!’:"“”-%$''') for i in symbol: song = song.replace(i, ' ') song = song.lower() split = song.split() word = {} for i in split: count = song.count(i) word[i] = count words = ''' you to for my i of a is the what me but konw so no we sweet oh ''' prep = words.split() for i in prep: if i in word.keys(): del(word[i]) word = sorted(word.items(), key=lambda item: item[1], reverse=True) for i in range(10): print(word[i])
  • 相关阅读:
    linux signal之初学篇
    Eclipse 每次打开workspace目录记录位置?
    [Clojure] A Room-Escape game, playing with telnet and pure-text commands
    孔雀翎----《Programming C# 》中国版 文章4版
    js一些编写的函数
    KVM,QEMU核心分析
    apche commons项目简介
    java基础—网络编程———建立聊天的形式
    学习算法
    css+html+js实现多级下拉和弹出菜单
  • 原文地址:https://www.cnblogs.com/lk666/p/8649694.html
Copyright © 2011-2022 走看看