来自Andrew
Delong的博客http://andrewdelong.wordpress.com/2012/11/03/pythonc-in-visual-studio-an-alternative-to-matlabmex/I
spent much of my PhD working in ...
分类:
编程语言 时间:
2014-06-08 22:45:10
阅读次数:
458
$django-admin.py startproject web2$cd
web2/$python manage.py startapp blog$vim web2/settings.py
注意settings.py以下两个部分,首先要配置数据库,其次要在INSTALLED_APP里添加刚才新建的...
分类:
移动开发 时间:
2014-06-08 22:18:14
阅读次数:
377
最初是想端午节放假3天写一个爬虫,原型版本完成后。。发现自己想要的其实是数据采集工具。目前进度如下已完成:1.简易WPF界面,Log显示,开关暂停2.硬盘结果写入,xml配置文件读写。3.html分析,用的indexof分析全文。但稳定抓了一星期百度贴吧,中途没崩过。未完成:1.xml文件图形化编辑...
分类:
其他好文 时间:
2014-06-08 22:07:41
阅读次数:
261
原题地址:https://oj.leetcode.com/problems/sqrtx/题意:Implementint
sqrt(int x).Compute and return the square root
ofx.解题思路:实现开平方函数。这里要注意的一点是返回的时一个整数。通过这一点我们可...
分类:
编程语言 时间:
2014-06-08 21:04:38
阅读次数:
329
原题地址:https://oj.leetcode.com/problems/search-for-a-range/题意:Given
a sorted array of integers, find the starting and ending position of a given
target ...
分类:
编程语言 时间:
2014-06-08 21:03:21
阅读次数:
297
原题地址:https://oj.leetcode.com/problems/sort-colors/题意:Given
an array withnobjects colored red, white or blue, sort them so that objects of
the same col...
分类:
编程语言 时间:
2014-06-08 20:56:32
阅读次数:
394
原题地址:https://oj.leetcode.com/problems/add-binary/题意:Given
two binary strings, return their sum (also a binary string).For example,a ="11"b
="1"Return"...
分类:
编程语言 时间:
2014-06-08 20:28:04
阅读次数:
300
最近在弄网页爬虫这方面的,上网看到关于htmlagilitypack搭配scrapysharp的文章,于是决定试一试~于是到https://www.nuget.org/packages/ScrapySharp去看看,看到这句下载提示:To
install ScrapySharp, run the f...
分类:
Web程序 时间:
2014-06-08 20:23:28
阅读次数:
402
url编码分两种, 一种是unicode, 另一种是gb2312,
今天遇到的一个网站是要将字符编码按照gb2312来编码,用来得到一个先填写blanks后再返回页面的数据,废话少说,需要做的就是先查看你的python的编码是啥,默认是ascii,import
sysprint sys.getd.....
分类:
编程语言 时间:
2014-06-08 20:17:26
阅读次数:
342
菜鸟HtmlAgilityPack初体验。。。弱弱的代码。。。Html Agility
Pack是一个开源项目,为网页提供了标准的DOM API和XPath导航。使用WebBrowser和HttpWebRequest下载的网页可以用Html
Agility Pack来解析。HtmlAgilityPa...
分类:
Web程序 时间:
2014-06-08 20:07:13
阅读次数:
502