摘要: 在学习了python的基本数据类型及相关语法后,现综合所学list,tuples,str,dict,sort,file等知识,解决以下问题。题目及代码如下: 1 # -*- coding: cp936 -*- 2 """ 3 1. For the --count flag, implement a print_words(filename) function that counts 4 how often each word appears in the text and prints: 5 word1 count1 6 word2 count2 7 ... 8 阅读全文
posted @ 2013-04-02 17:14 Emma437211 阅读(553) 评论(0) 推荐(0) 编辑