04 2017 档案
windows下搭建scrapy进行爬虫(python)
摘要:1.安装 zope.interface pip install zope.interface 2.安装twisted 是python实现的基于事件驱动的网络引擎框架 pip install twisted 3.安装pyopenssl pip install pyopenssl 4.安装pywin32
阅读全文
sublime text 个人用插件
摘要:1. sublimeREPL 2. latextools 3.latex word count 4. autofilename 5.terminality 6.anaconda 7.convertoutf8
阅读全文
GIMP 抠图/证件照背景色
摘要:1. 选区 2.enter 确定 3.增加 alpha 通道。 图层菜单-->透明-->添加 alpha 通道。 目的是为了选区最终确定后,删除选区之外的部分到透明。 4.最终抠取图像。 选择菜单-->反转;编辑菜单-->清除。 抠取图像成功。 文件菜单-->导出为…,另存为 png 格式,这种格式
阅读全文
统计词频并显示前十个高词频
摘要:from collections import Counter f=open('test.txt','r') txt=f.read() new_txt=txt.split() result=Counter(new_txt) print(result) print(result.most_common(10)) f.close()
阅读全文
浙公网安备 33010602011771号