Python学习篇
为丽力
没有bug可严
展开
-
【scrapy安装方法】
安装方法:Linux Mac:pip install scrapywindows:简单使用直接pip install scrapy即可。1.pip install wheel#用于安装twisted2.下载twisted,下载地址:http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted(异步数据下载需求)3.安装twisted:pip install Twisted-17.1.0-cp36-cp36m-win_amd64.whl4.pip insta原创 2021-12-03 13:07:18 · 87 阅读 · 0 评论 -
python【pip 安装】
你可以通过以下命令来判断是否已安装:pip --version # Python2.x 版本命令pip3 --version # Python3.x 版本命令如果你还未安装,则可以使用以下方法来安装:curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py # 下载安装脚本python get-pip.py # 运行安装脚本...原创 2021-12-03 13:04:38 · 184 阅读 · 0 评论 -
【python下使用CMUSphinx实现中文识别】
1.ahocorasick安装pip install pyahocorasick原创 2021-11-28 15:09:45 · 1574 阅读 · 0 评论 -
【python删除所有包】
导出所有包pip freeze > requirements.txt2)删除所有包注意:如果是conda环境需要保留conda,所以导出之后可以在自己电脑的用户文件夹找到requirements.txt文件,把需要的包的名字去除就可以不卸载还需要的包。pip uninstall -r requirements.txt -y...原创 2021-11-21 17:13:56 · 3203 阅读 · 0 评论 -
2020-09-09
Python统计单词出现次数因为作者能力有限,不会单词出现的频次进行统计,所以各位将着看吧!sentence = 'beautiful is batter than ugly.Explicit is batter than impanct beautiful,is and,Simpleis batter'for ch in ", . ? ! ": sentence = sentence.replace(ch, " ")words = sentence.split()map1 = {}fo原创 2020-09-09 20:53:23 · 101 阅读 · 0 评论