03 2018 档案

摘要:1.利用requests.get(url)获取网页页面的html文件 import requests newsurl='http://news.gzcc.cn/html/xiaoyuanxinwen/' res = requests.get(newsurl) #返回response对象 res.en 阅读全文
posted @ 2018-03-29 16:53 168李文辉 阅读(109) 评论(0) 推荐(0)
摘要:下载一长篇中文文章。 从文件读取待分析文本。 news = open('gzccnews.txt','r',encoding = 'utf-8') 安装与使用jieba进行中文分词。 pip install jieba import jieba list(jieba.lcut(news)) 生成词频 阅读全文
posted @ 2018-03-28 16:16 168李文辉 阅读(112) 评论(0) 推荐(0)
摘要:song=''' You're the light, you're the night You're the color of my blood You're the cure, you're the pain You're the only thing I wanna touch Never knew that it could mean so much, so much You're th... 阅读全文
posted @ 2018-03-25 19:14 168李文辉 阅读(185) 评论(0) 推荐(0)
摘要:字符串练习: http://news.gzcc.cn/html/2017/xiaoyuanxinwen_1027/8443.html 取得校园新闻的编号 https://docs.python.org/3/library/turtle.html 产生python文档的网址 http://news.g 阅读全文
posted @ 2018-03-21 15:00 168李文辉 阅读(230) 评论(0) 推荐(0)
摘要:代码: 截图: 阅读全文
posted @ 2018-03-15 20:22 168李文辉 阅读(76) 评论(0) 推荐(0)
摘要:请按要求上机实践如下linux基本命令。 cd命令:切换目录 (1)切换到目录 /usr/localcd /usr/local (2)去到目前的上层目录cd .. (3)回到自己的主文件夹cd ~ ls命令:查看文件与目录 (4)查看目录/usr下所有的文件ls -l /user mkdir命令:新 阅读全文
posted @ 2018-03-13 21:58 168李文辉 阅读(95) 评论(0) 推荐(0)
摘要:1.试述大数据对思维方式的重要影响 大数据思维能使我们在决策过程中超越原有思维框架的局限。每个人都是依据自己对现实的认识和判断而不是现实本身作出行动决策的。以数据为基础的智能决策有两个步骤。第一是对事物的理解和判断,第二是作出行动决策(不行动也是一种决策)。行动决策会受到决策者价值取向的影响。人们对 阅读全文
posted @ 2018-03-06 11:39 168李文辉 阅读(146) 评论(0) 推荐(0)