Posted on 2005-01-23 12:22
tedazf 閱讀(1355)
評論(4) 編輯 收藏
今天無聊就上了Python的官方網(wǎng)站,看到了Jython語言介紹,簡單的翻譯一點介紹貼過來,英文原本附在后面。
什么是Jython?
Jython是一種高層次整合Python語言與Java平臺的,動態(tài)的、面向?qū)ο蟮木幊陶Z言。Jython的前身——Jpython,被確認(rèn)為100%的純Java。Jython無論是否是商業(yè)上的使用都可以免費的使用。Jython補充了Java,且尤其適合在以下幾方面:
l 內(nèi)嵌腳本 Java允許在程序中加入Jython的類庫,并且允許用戶編寫簡單或復(fù)雜的腳本以函數(shù)的形式加入程序。
l 交互性試驗 Jython提供了一個可以被用于與Java包和Java運行中的程序交互的解釋器,這也就允許用Jython來調(diào)試Java程序。
l 程序快速開發(fā) Jython開發(fā)同等Java程序,但開發(fā)時間只是Java開發(fā)時間的二分之一到十分之一。這將直接增長編程的生產(chǎn)力。Java與Jython的無縫整合允許開發(fā)者在開發(fā)過程中自由的混合兩種語言。
What is Jython?
Jython is an implementation of the high-level, dynamic, object-oriented language Python seamlessly integrated with the Java platform. The predecessor to Jython, JPython, is certified as 100% Pure Java. Jython is freely available for both commercial and non-commercial use and is distributed with source code. Jython is complementary to Java and is especially suited for the following tasks:
- Embedded scripting - Java programmers can add the Jython libraries to their system to allow end users to write simple or complicated scripts that add functionality to the application.
- Interactive experimentation - Jython provides an interactive interpreter that can be used to interact with Java packages or with running Java applications. This allows programmers to experiment and debug any Java system using Jython.
- Rapid application development - Python programs are typically 2-10X shorter than the equivalent Java program. This translates directly to increased programmer productivity. The seamless interaction between Python and Java allows developers to freely mix the two languages both during development and in shipping products.