版本10和12间的区别 (跳过第2版)
于2006-06-21 20:58:18修订的的版本10
大小: 13056
编辑: czk
备注:
于2006-06-21 21:05:27修订的的版本12
大小: 1159
编辑: czk
备注:
删除的内容标记成这样。 加入的内容标记成这样。
行号 1: 行号 1:
[[TableOfContents]]
行号 24: 行号 22:

== Python应用领域 ==

Python在很多不同的应用领域都可以使用,包括Web和因特网、数据库、桌面图形界面,科学和数值计算、教育、网络、软件构建和测试、游戏开发、三维渲染等等。

=== Web与因特网开发 ===

Python offers a wide range of choices for web development including high-end solutions such as Zope, mega frameworks such as Django and TurboGears, and advanced content management systems such as Plone and CPS. Python is also great for CGI.

Python's extensive support for XML, email, RSS feeds, and many other Internet protocols makes Python a great choice for developing custom web solutions and other internet-based applications.
=== 数据库访问 ===

Need to access a database? Custom and ODBC interfaces to MySQL, Oracle, MS SQL Server, PostgreSQL, SybODBC, and others are available for free download.

=== 桌面图形界面 ===

Python arrives on your hard drive with the Tk GUI development library. Third-party libraries are available for MFC (via win32 extensions), wxWidgets, GTK, Qt, Delphi, and more.
Scientific and Numeric

Python is widely used in scientific and numeric computing, including in Bioinformatics (see also Python course in Bioinformatics) and Physics, among others.
=== 教育 ===

Python是一种非常适合程序设计教学的语言,无论是在入门级别还是在更进一步的课程上。Education Special Interest Group是一个好的开端。可以参考pyBiblio和Software Carpentry Course(由Python Software Foundation资助)。

=== 网络编程 ===

In addition to web and internet support described above, Python also provides support for lower level network programming with its easy to use sockets implementation and with powerful third party modules such as Twisted, a framework for asyncronous network programming,
=== 软件开发 ===

Python is often used as a support language for software developers, for build control and management, testing, and in many other ways. Some of the development support tools written in Python include SCons for build control, Buildbot and Apache Gump for automated continuous compilation and testing, and Trac for bug tracking and project management.

See also the list of Integrated Development Environments available for Python and the Python Package Index, which hosts thousands of third party modules for Python.
=== 游戏和三维图形 ===

Python is widely used in commercial and hobby game development (some of which are listed on the Python Games wiki page). PyGame and PyKyra are two of the game frameworks available for Python. There are also a number of 3D rendering libraries available for Python.


== Python应用实例 ==

The Python programming language is actively used in industry and academia for a wide variety of purposes.

=== Python的教育用途 ===

As of 2005, Python is getting more popular for teaching computer programming. Its strengths for teaching include its syntactic simplicity, flexible typing, and interactive interpreter.

Python uses far fewer symbols than languages like Java and C. For example blocks inside loops and IF statements are indicated by indentation rather than curly braces ({}), and the end of a line does not have to have a semicolon. Beginning students often have initial trouble with memorizing where curly braces and semi-colons go. With Python students can skip directly to the fun part of writing code that does something. Similarly, with Java, and C++, variables types must be declared before being used. That is not needed in Python which again allows students to quickly get to the interesting part of getting their program to do something.

The interactive interpreter is an extremely valuable aid to learning and experimentation. Learning-by-doing is about trying things out and seeing what happens. The faster you can get results from your experiment, the faster that learning produces results. Experience has shown that the interactive interpreter and lack of a compiler really speeds up the learning process, both for beginners and for pros who are learning a new library and such.

=== 使用Python的大型组织 ===

    * Google uses Python for many tasks including the backends of web apps such as Gmail and Google Maps and for many of its search-engine internals.
    * NASA is using Python to implement a CAD/CAE/PDM repository and model management, integration, and transformation system which will be the core infrastructure for its next generation collaborative engineering environment.

=== 使用Python写成的软件 ===

    * BitTorrent, the original implementation and several derivatives
    * Chandler, a personal information manager including calendar, email, tasks and notes support that is currently under development
    * Civilization IV videogame and the newly released computer game uses boost.python to allow the Python programming language access to many parts of the game (including the style and content of all interface screens)
    * Mailman, one of the more popular packages for running email mailing lists
    * Kombilo, go games' database manager and browser.
    * MoinMoin, a popular wiki engine in Python
    * OpenRPG, a virtual table on which to play Role Playing Games over the internet
    * Plone, a user-friendly and powerful open source Content Management System
    * Portage, the heart of Gentoo Linux. An advanced package management system based on the *BSD style ports system
    * Solipsis, a system for massively shared virtual world
    * Trac, bug/issue tracking database, integrated with MoinMoin wiki and Subversion source version control
    * Turbogears, an application framework composed of Cherrypy, SQLObject, MochiKit, and KID templates
    * Vampire: The Masquerade - Bloodlines, a videogame, uses Python for game scripting
    * ViewVC, a web-based interface for browsing CVS and SVN repositories
    * Zope, an object-oriented web-application platform. Zope includes an application server with an integrated object-oriented database and a built-in web-based management interface
    * Battlefield 2, a first person shooter that uses python for its configuration scripts
    * Indian Ocean Tsunami Detector, a free mobile phone software for tsunami prediction.
    * EVE Online, a space Multi Massive Online Role Playing Game, the highest-ranked MMORPG on MMORPG.com
    * SPE - Stani's Python Editor, a free, open-source Python IDE for Windows, Linux & Mac with wxGlade (GUI designer), PyChecker (Code Doctor) and Blender (3D) support.

=== Python包 ===

The Python Cheese Shop and Vaults of Parnassus are two primary directories of hundreds of Python packages

    * matplotlib, an extension providing matlab-like plotting and mathematical functions
    * Numeric Python, a language extension that adds support for large, multi-dimensional arrays and matrices
    * SciPy, a library of scientific and numerical routines
    * SimPy, a discrete-event simulation package;
    * Biopython, an international association of developers of freely available Python tools for computational molecular biology.
    * PyOpenGL, a package that allows 3D rendering using Python
    * Soya 3D, a high-level 3D game engine for Python
    * Pygame http://www.pygame.org Python game development
    * Python Imaging Library, a module for working with images
    * PyGTK, http://www.pygtk.org/, a popular cross-platform GUI library based on GTK+; furthermore, other GNOME libraries also have bindings for Python
    * PyQt, another popular cross-platform GUI library based on Qt; as above, KDE libraries have bindings too
    * wxPython, a port of wxWidgets and a popular cross-platform GUI library for Python

    * PyObjC, a Python-Objective C bridge that allows one to write Mac OS X software in Python
    * py2exe, compiler that turns Python scripts into standalone Windows programs

    * CherryPy, a Python-powered web framework
    * Django, another Python-powered web framework
    * Topsite Templating System, another Python-powered web framework
    * TurboGears, a web framework combining CherryPy, SQLObject, and Kid
    * ZODB a Python-specific object-oriented database
    * Cheetah, a Python-powered template engine and code-generation tool
    * mod_python, an Apache module allowing direct integration of Python scripts with the Apache web server
    * Quixote (software) a framework for developing Web applications in Python
    * Twisted, a networking framework for Python

See more recommended modules at Useful Modules in the Python.org wiki.

=== Python软件目录 ===

    * Python Cheese Shop (also called the Python Package Index or PyPI) is the official directory of Python software libraries and modules.
    * ActiveState O'Reilly Python Cookbook contains hunderds of code samples for various tasks using Python.
    * Python Projects and Modules lots of useful code, as well as several articles on Python Programming.
    * Vaults of Parnassus — Links to resources.
    * Python 3D Software Collection — pointers to packages specifically useful in the production of 3D software and/or games with Python

== Python的实现 ==

The standard Python interpreter also supports an interactive mode in which it acts as a kind of shell: expressions can be entered one at a time, and the result of their evaluation is seen immediately. This is a boon for those learning the language and experienced developers alike: snippets of code can be tested in interactive mode before integrating them into a proper program. As well, the Python shell is often used to interactively perform system tasks, such as modifying files.

Python also includes a unit testing framework for creating exhaustive test suites. While static typing aficionados see this as a replacement for a static type-checking system, Python programmers largely do not share this view.

Standard Python does not support continuations, and according to Guido van Rossum, never will. However, better support for coroutine-like functionality is planned, by extending Python's generators [3]

    * Python – The reference implementation, also known as CPython
    * Jython – Python coded in Java
    * IronPython – Python for .NET and Mono platforms
    * Boo – Python-based but with static typing, for .NET and Mono
    * Stackless Python - Python with coroutines
    * Psyco - not an implementation, but JIT compiler for CPython
    * PyPy – Python coded in Python
    * Parrot – Virtual machine being developed mainly as the runtime for Perl 6, but with the intent to also support dynamic languages like Python, Ruby, Tcl, etc. Can currently execute a subset of Python
    * Logix – Python alternate front-end with macros
    * Movable Python- An alternative distribution of CPython for Windows. It can run off a USB stick and provides a Portable Programming Environment.

== Python的标准库 ==

Python有一个巨大的标准库,这使得Python适合于完成很多任务。Python模块的哲学被称作"内置电池"。标准库中的模块可以通过C语言或者Python语言写成的模块来增加。标准库被精心的设计用以编写面向Internet的应用,包括对大量的标准格式和协议的支持(比如MIME和HTTP)。同时也包括编写图形用户界面的模块,连接关系型数据库的模块,任意精度的算术运算模块,以及处理正则表达式的模块。

标准库是Python的一个强大之处。其中大部分是跨平台的,这意味着即使是横跨多个领域的Python程序也可以不经过修改直接运行在Unix、Windows、Macintosh以及其他平台上。

现在正在争论第三方的开源模块比如Twisted、NumPy、wxPython等是否应该被包括在标准库之中,以使其跟内置电池的哲学一致。





 * ["/Python应用领域"]
 * ["/Python应用实例"]

Python语言介绍

Python是一种解释型的编程语言,由Guido van Rossum于1990年创造。Python是完全动态类型的语言,使用自动的内存管理;在这方面它和Perl、Ruby、Scheme、Smalltalk和Tcl语言是类似的。Python是由开放源代码项目开发,由非盈利性组织Python软件基金会(Python Software Foundation)管理,并在项目网站上免费开放。Python 2.4.3版于2006年3月29日发布。

编程范式:

多范式

出现时间:

1990

设计者:

Guido van Rossum

开发者:

Python Software Foundation

最新版本:

2.4.3 / March 29, 2006

类型规则:

强类型,动态类型(鸭子类型)

主要的实现版本:

CPython, Jython, IronPython, PyPy

受哪些语言影响:

ABC, Modula-3, Icon, C, Perl, Lisp, Smalltalk, Tcl

影响了哪些语言:

Ruby, Boo

操作系统:

跨平台

许可证:

Python Software Foundation License

网站:

www.python.org

  • ["/Python设计哲学"]
  • ["/Python历史"]
  • ["/Python语法特点"]
  • ["/Python支持的平台"]
  • ["/Python应用领域"]
  • ["/Python应用实例"]

Python介绍 (2020-04-21 14:11:21由czk编辑)

ch3n2k.com | Copyright (c) 2004-2020 czk.