PP3eD/Ch-2-2

2.2. The Task

Imagine, if you will, that you need to keep track of information about people for some reason; maybe you want to store an address book on your computer, or perhaps you need to keep track of employees in a small business. For whatever reason, you want to write a program that keeps track of details about these people. In other words, you want to keep records in a database to permanently store lists of people's attributes on your computer.

想象一下,你可能因为某种原因需要去跟踪某些人的信息.你可能需要在电脑上建立一个地址薄,或者你可能需要去跟踪一个小型企业的雇员信息.不管什么原因.你需要去跟踪某些人的详细信息. 换句话说, 你需要保存那些记录在一个数据库从而永久地在您的电脑保存人们的信息.


Naturally, there are off-the-shelf programs for managing databases like these. By writing a program for this task yourself, however, you'll have complete control over its operation; you can add code for special cases and behaviors that precoded software may not have anticipated. You won't have to install and learn to use yet another database product. And you won't be at the mercy of a software vendor to fix bugs or add new features. You decide to write a Python program to manage your people.

事实上,现在已经有很多管理这样的数据的程序.通过自己实现这样的任务. 从而使你可以完全控制它的操作. 你可以通过自己编码增加一些现有软件未包含的用例和行为.你将不需要安装学习其它这类数据库产品.同时不用去等待软件供应商去修复错误和增加新的特性. 你决定去写一个Python程序去管理人们的信息. 让我们开始... ...

PP3eD/Ch-2-2 (last edited 2009-12-25 07:17:10 by localhost)