
python
文章平均质量分 89
zdw12242
这个作者很懒,什么都没留下…
展开
-
python中文分词
源地址:http://www.isnowfy.com/python-chinese-segmentation/------------------------------------原作:------------------------------------------------相对于英文而言,中文在计算机处理方面有个必须要面对的问题就是中文分词,英文的转载 2012-10-19 14:37:50 · 1680 阅读 · 2 评论 -
vs2010中C++调用python脚本并制作安装包
一、 准备工作1. 安装visual studio 210。2. 安装python编译环境,笔者版本为2.7.2。3. 安装py2exe,用于给编写好的python打包。二、编写python脚本程序以下程序为笔者为学校的bbs写的登陆脚本LilyLogin.py,输入为用户名和密码,返回一段cookie字符串:import httplib,urllibimport r原创 2013-01-10 20:00:15 · 11215 阅读 · 5 评论 -
利用python、Gephi绘制人人的社交网络图
1. 登陆自己的人人网,进入到网页 http://friend.renren.com/myfriendlistx.do#item_0 ,得到如下图的页面:右键查看源代码,将下图中自己好友列表的一行复制出来,保存为 myFriends.dat (保存为一行的文本)。2. 运行下图的源代码:import urllib,urllib2,cookielib原创 2013-03-18 16:33:41 · 61975 阅读 · 16 评论 -
利用mincemeat编写简单的MapReduce程序
本文例子为Coursera上web intelligence and big data的课程作业。问题描述:Download data files bundled as a .zip file from hw3data.zipEach file in this archive contains entries that look like:journals/cl/S原创 2013-04-15 08:14:54 · 5406 阅读 · 20 评论