摘要: 统计单词次数 作为字典存储cotent = "who have an apple apple is free free is money you know" result = {} for s in content.split(""): if s in result: result[s] + =1 else: result[s] = 1 print... 阅读全文
posted @ 2017-10-29 21:49 一只宅男的自我修养 阅读(350) 评论(0) 推荐(0)