Python的Scrapy定制网络爬虫
网络爬虫(Web Crawler, Spider)就是一个在网络上乱爬的机器人。当然它通常并不是一个实体的机器人,因为网络本身也是虚拟的东西,所以这个“机器人”其实也就是一段程序,并且它也不是乱爬,而是有一定目的的...
利用psyco让Python程序执行更快
Python 和其他的脚本语言在性能上跟一些编译语言(如C语言)比较要差不少,例如这里有两个用 C 和 Python 语言编写的斐波纳契数列计算程序:C语言:CODE:int fib(int n){ if (n < 2) &nbs...
用Python访问Oracle
Despite the beaming praise for the simplicity of the cx_Oracle project on their SourceForge page, I had trouble using the Python module to create a connection to an Oracle database. It turns out t...
Sonnet Primes in Python
A while back I wrote about sonnet primes, primes of the form. ababcdcdefefgg where the letters a through g represent digits and a is not zero. The name comes from the rhyme scheme of an English (S...
企业级Web框架web2py v2.3.2发布
web2py是一个用Python语言编写的免费的开源Web框架,旨在敏捷快速的开发Web应用,具有快速、可扩展、安全以及可移植的数据库驱动的应用。遵循LGPLv3协议,目前可用版本是2.3.2。使用web2py无需配置、无需安装...
Django框架中的用户认证的实现
Django comes with a user authentication system. It handles user accounts, groups, permissions and cookie-based user sessions. This document explains how things work.OverviewThe auth system cons...
Python之父Guido Van Rossum离开Google投靠Dropbox
Dropbox宣布Python之父Guido Van Rossum从Google离职,将在一月加入他们。Guido Van Rossum从2005年就开始于Google公司任职,他的到来对Dropbox来说将提供巨大的帮助,因为Dropbox就是用Python写的。Dropbox创...
Django 1.5的重大改进一览
[i=s] 本帖最后由 jieforest 于 2012-12-3 20:29 编辑 With the announcement of Django 1.5B1 and the final release of 1.5 around the corner I thought I’d go over some of the largest new features. F...
Python开发者应该知道的7个开发库
[i=s] 本帖最后由 jieforest 于 2012-11-25 11:48 编辑 在我多年的 Python 编程经历以及在 Github 上的探索漫游过程中,我发掘到一些很不错的 Python 开发包,这些包大大简化了开发过程,而本文就是为了向大家...
mycloud - cluster computing in the small
I spent a little time cleaning up mycloud recently – it’s a Python library that gives you a simple map/mapreduce interface without any setup (just SSH access).I’ve been using it a lot for lit...
Python网络Socket编程
基本上,Socket 是任何一种计算机网络通讯中最基础的内容。例如当你在浏览器地址栏中输入 www.oschina.net 时,你会打开一个套接字,然后连接到 www.oschina.net 并读取响应的页面然后然后显示出来。而其他一些...
Django 1.4项目开发
Back in February, I wrote a post titled 'Starting a Django Project the Right Way', which still draws a consistent audience eight months later. In those eight months, Django has released version ...
通过Hello world对比Python框架的性能
Python Web 开源的开发框架繁多,最快的是啥呢?老外发表博文,通过一个简单的「Hello World」App 对各个框架进行了性能测试。当然,用 Hello world 测试出来的性能不能作为框架的选型依据,但可以参考。下...
Python实现UDP包编程
UDP or user datagram protocol is an alternative protocol to its more common counterpart TCP. UDP like TCP is a protocol for packet transfer from 1 host to another, but has some important differenc...
利用Python Flask构建Web网站
For some times now, I have been doing some projects in Python and some were web applications. Flask is a small framework to do exactly that and I have found it perfect for the job. It’s really ea...
“结巴”分词:做最好的Python分词组件
中文分词是中文文本处理的一个基础性工作,然而长久以来,在Python编程领域,一直缺少高准确率、高效率的分词组件。结巴分词正是为了满足这一需求。 在线演示:http://209.222.69.242:9000/ 特性: 支持两...
伟大的Python
I've been in love with the language for a decade.I feel a connection to the community that has only grown over time, both in numbers and in awesomeness. However, I see difficult times ahead. Not...
Python is doing just fine
A few people have written with a little bit a of angst about the future of the Python programming language. I have felt this too. I wonder if it is because its big brother Perl, which it used to t...
8个开源的Python变种
1. PyPy - fast, compliant alternative implementation of the Python languagePyPy is a fast, compliant alternative implementation of the Python language. It supports most of the commonly used Pyth...
基于单字位置最大概率的Python分词工具snailseg
[i=s] 本帖最后由 jieforest 于 2012-9-22 21:33 编辑 snailseg是一个使用Python编写的简单的中文分词库。 项目地址:https://github.com/fxsjy/snailseg 在线分词效果展示:https://snailsegdemo.appspot....