摘要: 1.助教博客链接: https://www.cnblogs.com/mulin1999 2.作业情况: 评价数量:2 评价分数: 3. 成员博客链接 王龙:https://www.cnblogs.com/ngxt/ 张国全:https://www.cnblogs.com/Crush999/ 4.优秀 阅读全文
posted @ 2019-12-22 22:43 Leslie_Chan 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 此次内容: 使用webdriver访问instagram网站, 查看周杰伦主页,向下翻动,并返回加载出来的图片url,和周杰伦的粉丝数: from selenium import webdriver import time from selenium.webdriver.common.keys im 阅读全文
posted @ 2019-12-22 22:35 Leslie_Chan 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 1.助教博客链接:https://home.cnblogs.com/u/lesliechan/ 2.作业情况: 3:优秀博客: 陈畅:https://www.cnblogs.com/chenchang-rjgc/p/12041165.html 鲁尧尧:https://www.cnblogs.com/ 阅读全文
posted @ 2019-12-15 22:35 Leslie_Chan 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 先来看看程序运行的样子: 所以,程序的原理是 从一个url = ‘ http://www.uustv.com/ ’中爬取个性签名的图片。 在该网页中审查该图片的元素,然后找到该图片的img ur 使用正则表达式直接定位 程序的后面使用到了tkinter的 GUI简易界面,用于和用户的简单交互,非常方 阅读全文
posted @ 2019-12-14 23:08 Leslie_Chan 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 1.助教博客链接:https://home.cnblogs.com/u/lesliechan/ 2.作业情况: 3:优秀博客: 陈畅:https://www.cnblogs.com/chenchang-rjgc/p/12005171.html 鲁尧尧:https://www.cnblogs.com/ 阅读全文
posted @ 2019-12-09 14:17 Leslie_Chan 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 如图的小游戏,汉诺塔: 游戏的目的是将最左边的三块移动到最右边,游戏即为成功。 下面按照代码的步骤进行移动,三根柱子分别代表了x,y,z: 发现可以实现游戏目的! 当然,三个对于很多人来说并不难实现目标,但是当块变成了5个甚至8个呢 下面,我们来试试7个方块,同样是三根柱子,人的计算就很难实现游戏目 阅读全文
posted @ 2019-12-08 11:17 Leslie_Chan 阅读(1288) 评论(0) 推荐(0) 编辑
摘要: 1.助教博客链接:https://home.cnblogs.com/u/lesliechan/ 2.作业情况: 3:优秀博客: 张国全:https://www.cnblogs.com/Crush999/p/11963653.html 陈畅:https://www.cnblogs.com/chench 阅读全文
posted @ 2019-12-01 17:38 Leslie_Chan 阅读(133) 评论(0) 推荐(0) 编辑
摘要: import gensim, logging, os logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) import nltk corpus = nltk.corpu 阅读全文
posted @ 2019-12-01 17:16 Leslie_Chan 阅读(812) 评论(0) 推荐(0) 编辑
摘要: 1.助教博客链接:https://home.cnblogs.com/u/lesliechan/ 2.作业情况: 3.优秀博客: 陈畅:https://www.cnblogs.com/chenchang-rjgc/p/11921393.html 鲁尧尧:https://www.cnblogs.com/ 阅读全文
posted @ 2019-11-24 15:12 Leslie_Chan 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 一、冒泡排序 arr = [5,3,1,2,4] n = len(arr) for i in range(n - 1): for j in range(n - 1 - i): print(i,j) if arr[j] > arr[j + 1]: arr[j], arr[j + 1] = arr[j 阅读全文
posted @ 2019-11-23 20:03 Leslie_Chan 阅读(502) 评论(0) 推荐(0) 编辑