上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 24 下一页
摘要: 下载与安装Python中使用MySQL需要安装MySQLdb驱动,可以从官方站点下载:http://sourceforge.net/projects/mysql-python/ 目前支持最高Python版本号2.6,MySQL版本号5.1,详细描述如下: MySQL support for Python. MySQL versions 3.23-5.1;and Python versions 2.3-2.6 are supported. MySQLdb is the Python DB API-2.0 interface. _mysql is a low-level API similia.. 阅读全文
posted @ 2011-08-24 18:09 牛皮糖NewPtone 阅读(6087) 评论(0) 推荐(0) 编辑
摘要: CHAPTER 5 Categorizing and Tagging Words 分类和标注单词 Back in elementary school you learned the difference between nouns, verbs, adjectives, and adverbs. These “word classes” are not just the idle invention of grammarians(文法家), but are useful categories for many language processing tasks. As we will s... 阅读全文
posted @ 2011-08-21 15:23 牛皮糖NewPtone 阅读(5043) 评论(0) 推荐(0) 编辑
摘要: 4.11Exercises 练习 ☼ Find out more about sequence objects using Python's help facility. In the interpreter, typehelp(str),help(list), andhelp(tuple). This will give you a full list of the functions supported by each type. Some functions have special names flanked with underscore... 阅读全文
posted @ 2011-08-21 15:13 牛皮糖NewPtone 阅读(1283) 评论(0) 推荐(1) 编辑
摘要: 4.10Further Reading 深入阅读 This chapter has touched on many topics in programming, some specific to Python, and some quite general. We've just scratched the surface(我们还停留在肤浅的表面), and you may want to read more about these topics, starting with the further materials for this chapter available athttp 阅读全文
posted @ 2011-08-21 15:11 牛皮糖NewPtone 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 4.9Summary小结 Python's assignment and parameter passing use object references; e.g. ifais a list and we assignb = a, then any operation onawill modifyb, and vice versa. Python的赋值和传参使用了对象引用;例如,如果a是一个列表并且我们赋值b=a,那么任何对于a的操作将会修改b 的值,反之亦然。 Theisoperation tests if two objects are i... 阅读全文
posted @ 2011-08-21 15:09 牛皮糖NewPtone 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 4.8A Sample of Python LibrariesPython库的样本 Python has hundreds of third-party libraries, specialized software packages that extend the functionality of Python. NLTK is one such library. To realize the full power of Python programming, you should become familiar with several other libraries. Most of . 阅读全文
posted @ 2011-08-21 15:05 牛皮糖NewPtone 阅读(5242) 评论(0) 推荐(0) 编辑
摘要: 4.7Algorithm Design算法设计This section discusses more advanced concepts, which you may prefer to skip on the first time through this chapter.A major part of algorithmic problem solving is selecting or adapting an appropriate algorithm for the problem at hand. Sometimes there are several alternatives, . 阅读全文
posted @ 2011-08-19 23:41 牛皮糖NewPtone 阅读(2227) 评论(0) 推荐(0) 编辑
摘要: 简单的介绍 SQLite数据库是一款非常小巧的嵌入式开源数据库软件,也就是说没有独立的维护进程,所有的维护都来自于程序本身。它是遵守ACID的关联式数据库管理系统,它的设计目标是嵌入式的,而且目前已经在很多嵌入式产品中使用了它,它占用资源非常的低,在嵌入式设备中,可能只需要几百K的内存就够了。它能够支持Windows/Linux/Unix等等主流的操作系统,同时能够跟很多程序语言相结合,比如 Tcl、C#、PHP、Java等,还有ODBC接口,同样比起Mysql、PostgreSQL这两款开源世界著名的数据库管理系统来讲,它的处理速度比他们都快。SQLite第一个Alpha版本诞生于2000. 阅读全文
posted @ 2011-08-18 16:13 牛皮糖NewPtone 阅读(89884) 评论(1) 推荐(6) 编辑
摘要: 4.6Program Development程序开发 Programming is a skill that is acquired over several years of experience with a variety of programming languages and tasks. Key high-level abilities arealgorithm designand its manifestation instructured programming(主要的高级技能是算法设计以及在结构化编程中的实现). Key low-level abilities include 阅读全文
posted @ 2011-08-16 23:46 牛皮糖NewPtone 阅读(1985) 评论(0) 推荐(0) 编辑
摘要: 4.5Doing More with Functions 关于函数的更多使用 This section discusses more advanced features, which you may prefer to skip on the first time through this chapter. Functions as Arguments函数作为参数 So far the arguments we have passed into functions have been simple objects like strings, or structured objects like 阅读全文
posted @ 2011-08-16 23:36 牛皮糖NewPtone 阅读(1315) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 24 下一页