网络爬虫基础练习
摘要:import requests from bs4 import BeautifulSoup newsurl='http://localhost:63342/untitled/3/29.html?_ijt=ltocl4v68kb1po4608e3291lkm' res=requests.get(newsurl) res.encoding="utf-8" soup=BeautifulSoup(res...
阅读全文
综合练习:词频统计
摘要:file=open('song.txt','r',encoding='utf-8') str=file.read() # 将文章里的标点符号替换为空格 wordList =str.lower().split() # 将数组变成一个个个单词 sep=''',.'"?!:''' word = ['it', 'you', 'a', 'and', 'for', 'on', 'the
阅读全文
组合数据类型练习,综合练习
摘要:1、字符串 2、列表 3、元组 4、字典 5、集合
阅读全文
Python基础综合练习
摘要:from turtle import * def mygoto(x,y): up() goto(x,y) down() def mygoto(x,y): up() goto(x,y) down() def mystar(x): begin_fill() for i in range(5): forward(x) ...
阅读全文
熟悉常用的Linux操作
摘要:请按要求上机实践如下linux基本命令。 cd命令:切换目录 (1) 切换到目录 /usr/local Cd/usr/local (2) 去到目前的上层目录 Cd .. (3) 回到自己的主文件夹 Cd ~ ls命令:查看文件与目录 (4)查看目录/usr下所有的文件 ls mkdir命令:新建新目
阅读全文
大数据概述
摘要:一· 试述大数据对思维方式的重要影响。 大数据使人们从传统思维方式变成大数据思维方式,大数据思维方式就是统计,分析,对一切行为直观化,并精准化,高效化。而随着大数据技术在日常生活中不断应用,很多人不会固执于简单的因果思维,而是会慢慢接受集科学和艺术于一身的概率思维。思维方式转变的过程也会让很多过去不
阅读全文