petit_herisson

导航

2019年11月27日 #

Exercise: Week 3-3.1-2

摘要: Define the function twonums_sum(n, lst), finds in the list lst whether there is a sum of two numbers equal to n, if any, returns a subscript of two nu 阅读全文

posted @ 2019-11-27 19:21 petit_herisson 阅读(142) 评论(0) 推荐(0)

Exercise: Week 3-3.1-1

摘要: Enter an English sentence. Except for words and spaces, the sentence contains only punctuation ",", ".", "'", "", and "!". Count the times of each wor 阅读全文

posted @ 2019-11-27 17:49 petit_herisson 阅读(112) 评论(0) 推荐(0)

2019年11月20日 #

Exercise: Week 2-7

摘要: File artical.txt contains an article in English (please create the file by yourself and put any English article you picked in it). Assume the article 阅读全文

posted @ 2019-11-20 11:50 petit_herisson 阅读(97) 评论(0) 推荐(0)

2019年10月12日 #

第三章 开始采集

摘要: 网页去重 output 2019-10-12 15:50:43 阅读全文

posted @ 2019-10-12 10:51 petit_herisson 阅读(141) 评论(0) 推荐(0)

2019年10月10日 #

第二章 复杂HTML解析

摘要: bsObj.findAll(tagName, tagAttributes) .get_text() 会把这些超链接、段落和标签都清除掉, 只剩下一串不带标签的文字。 findAll(tag, attributes, recursive, text, limit, keywords) find(tag 阅读全文

posted @ 2019-10-10 12:23 petit_herisson 阅读(160) 评论(0) 推荐(0)

2019年10月8日 #

第一章 urlopen和BeautifulSoup

摘要: output output 2019-10-08 18:01:59 阅读全文

posted @ 2019-10-08 12:49 petit_herisson 阅读(211) 评论(0) 推荐(0)

2019年10月3日 #

模拟扫雷游戏

摘要: game_main game_intro game_map 2019-10-04 02:19:12 阅读全文

posted @ 2019-10-03 21:19 petit_herisson 阅读(122) 评论(0) 推荐(0)

2019年10月2日 #

Exercise 44b - composition

摘要: output 2019-10-03 02:09:04 阅读全文

posted @ 2019-10-02 21:09 petit_herisson 阅读(98) 评论(0) 推荐(0)

Exercise 44a - inheritance

摘要: output output output output 2019-10-03 01:36:45 阅读全文

posted @ 2019-10-02 20:20 petit_herisson 阅读(89) 评论(0) 推荐(0)

Exercise 41 - speak class

摘要: recommend: run this in python2.7 output 2019-10-02 17:21:18 阅读全文

posted @ 2019-10-02 12:25 petit_herisson 阅读(128) 评论(0) 推荐(0)