posts - 6, comments - 21, trackbacks - 0, articles - 2

什么是Jython?

Posted on 2005-01-23 12:22 tedazf 阅读(1323) 评论(4)  编辑  收藏

今天无聊就上了Python的官方网站,看到了Jython语言介绍,简单的翻译一点介绍贴过来,英文原本附在后面。

 

什么是Jython

Jython是一种高层次整合Python语言与Java平台的,动态的、面向对象的编程语言。Jython的前身——Jpython,被确认为100%的纯JavaJython无论是否是商业上的使用都可以免费的使用。Jython补充了Java,且尤其适合在以下几方面:

l       内嵌脚本      Java允许在程序中加入Jython的类库,并且允许用户编写简单或复杂的脚本以函数的形式加入程序。

l       交互性试验    Jython提供了一个可以被用于与Java包和Java运行中的程序交互的解释器,这也就允许用Jython来调试Java程序。

l       程序快速开发  Jython开发同等Java程序,但开发时间只是Java开发时间的二分之一到十分之一。这将直接增长编程的生产力。JavaJython的无缝整合允许开发者在开发过程中自由的混合两种语言。

 

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.

Feedback

# re: 什么是Jython?  回复  更多评论   

2005-01-23 14:15 by wxb_nudt
能不能介绍一下为什么要Jython,Java的哪些不足导致了Jython的出世?

# re: 什么是Jython?  回复  更多评论   

2005-02-02 21:50 by tedazf
Jython,我知识了解而已,过几天wo系统地看一遍,整理出一套教程上来吧。
一个月以内!保证!

# re: 什么是Jython?  回复  更多评论   

2009-02-10 10:36 by 123
www.jython.com.cn jython中文网欢迎大家。。。

# re: 什么是Jython?  回复  更多评论   

2009-04-03 09:30 by SmartY0622
可不可以在java中读到jython脚本引擎中的信息.
比如说我需要知道jython当前运行到哪一条语句了?

有知道的高手们请联系一下吧:
我的油箱是; yang.weiping@zte.com.cn

谢谢

只有注册用户登录后才能发表评论。


网站导航: