前言

BEOPEN.COM版權說明

BEOPEN.COM TERMS AND CONDITIONS FOR PYTHON 2.0

BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1

  1. This LICENSE AGREEMENT is between BeOpen.com (``BeOpen''), having an office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the Individual or Organization (``Licensee'') accessing and otherwise using this software in source or binary form and its associated documentation (``the Software'').

  2. Subject to the terms and conditions of this BeOpen Python License Agreement, BeOpen hereby grants Licensee a non-exclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use the Software alone or in any derivative version, provided, however, that the BeOpen Python License is retained in the Software, alone or in any derivative version prepared by Licensee.

  3. BeOpen is making the Software available to Licensee on an ``AS IS'' basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.

  4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.

  5. This License Agreement will automatically terminate upon a material breach of its terms and conditions.

  6. This License Agreement shall be governed by and interpreted in all respects by the law of the State of California, excluding conflict of law provisions. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between BeOpen and Licensee. This License Agreement does not grant permission to use BeOpen trademarks or trade names in a trademark sense to endorse or promote products or services of Licensee, or any third party. As an exception, the ``BeOpen Python'' logos available at http://www.pythonlabs.com/logos.html may be used according to the permissions granted on that web page.

  7. By copying, installing or otherwise using the software, Licensee agrees to be bound by the terms and conditions of this License Agreement.

CNRI OPEN SOURCE LICENSE AGREEMENT

Python 1.6 is made available subject to the terms and conditions in CNRI's License Agreement. This Agreement together with Python 1.6 may be located on the Internet using the following unique, persistent identifier (known as a handle): 1895.22/1012. This Agreement may also be obtained from a proxy server on the Internet using the following URL: http://hdl.handle.net/1895.22/1012 [off-site link] .

CWI PERMISSIONS STATEMENT AND DISCLAIMER

Copyright © 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, The Netherlands. All rights reserved.

Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Stichting Mathematisch Centrum or CWI not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission.

STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

摘要:

Python是一個容易學習又功能強大的程式語言。它含有高效率的高階資料結構,也是一個簡單但是有效果的物件導向程式語言(object-oriented programming)。Python優雅的語法及動態型態識別(dynamic typing),加上直譯式(intepretion)的本質,使得它成為一個在多種功能多種平台上撰寫腳本(scripts)及快速開發的理想語言。

各種主要平台的Python直譯器(interpreter)及延伸的標準程式庫(library)都可以在 Python的網站( http://www.python.org [off-site link] )上免費下載及自由流傳(包含原始碼及二元執行檔(binary form))。 在該網站上也有許多的檔案及連結,包括了免費、第三者開發的Python模組、程式及工具, 以及許多的附帶文件。

Python的直譯器也可以很容易的延伸,可以加入新的由C或是C++(或其他可以由C呼叫的程式語言)所寫的函數或是資料型態。Python也很適合用來當作其他應用程式的延伸語言(譯者言:比如說用Python來延伸CAD, DBMaker等的功能)。

本教學文件將非正式的介紹給讀者Python語言及系統的基本觀念及特性。如果讀者手邊有一個Python的直譯器將有助於獲得實際的知識,但是本文件的解釋都很充足,所以如果單純離線閱讀也是可以的。

若對於標準的物件及模組有興趣的話,請參閱 Python Library Reference。 若是要知道正式Python語言的標準定義的話,可參考 Python Reference Manual 。 若有興趣用C或C++寫延伸的功能的話,請參考 Extending and Embedding the Python Interpreter 以及 Python/C API Reference。市面上也有許多更深入探討Python的書籍。

本教學文件並不試圖完整的介紹每一個Python的特性,甚至也不試圖介紹每一個常用的功能。 相反的,本文件介紹許多Python值得認識的功能,並且讓讀者對這個語言的大致風貌有一個了解。 在讀完此書之後,讀者應該可以開始讀及寫Python的模組及程式,並且應該可以開始學習各種在 Python Library Reference所介紹的模組了。


請看關於此文件… 裡面有關如何給我們建議的說明。