# -*- coding: gb2312 -*- FileInfo = """ #==================================================================== #========Project: jython Demo Gb2312 #========Module: -- #========Author: junsi #========Create Date: 2005-06-14 #========Update Date: #==================================================================== """ import string import java.lang.String as jstring def Unicode2Gb2312( ast...
by junsi - Python文档中心 - 2005-06-17 15:17:13 阅读(3541) 回复(0)
Charming jython Learn how the Java implementation of Python can aid your development efforts Document options Print this page E-mail this page Rate this page Help us improve this content Level: Introductory Uche Ogbuji ( [email=uche@ogbuji.net]uche@ogbuji.net[/email] ), Principal Consultant, Fourthought, Inc. 06 May 2003 jython, the 100% Pure Java implementation of the P...
servlet的另类写法:使用jython 众所周知,servlet是java在服务器端程序设计的重要组成部分,servlet执行效率较高,适合做程序的逻辑处理,缺点是使用起来比较 繁琐,每个servlet必须在web.xml中声明并且当修改部署后的servet后一般还需要reload容器,这种情况对于开速开发是很不利的, 本文介绍一种另外的serlvet开发方式:使用jython 本文假设读者熟悉某种应用服务器(如tomcat),java 和 python程序设计语言 在 http://www.jytho...
jython 2.5 download url: http://downloads.sourceforge.net/jython/jython_installer-2.5a1.jar require JDK5 and above version java -jar jython_installer-2.5a1.jar to install the new version enjoy it . 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6123/showart_1083763.html
alt.lang.jre: Get to know jython Enhance your productivity on the Java platform Document options Print this page E-mail this page Sample code Rate this page Help us improve this content Level: Introductory Barry Feigenbaum, Ph.D. ( [email=feigenba@us.ibm.com]feigenba@us.ibm.com[/email] ), Sr. Consulting IT Architect, IBM 06 Jul 2004 Get to know jython, in this first ...
jython与Java 用jython可以开发java程序,前提是你的电脑上面要安装java jdk.我们来对比一下用java和用jython 写的程序看看。 import java.awt.*; public class FrmeDemo { public static void main(String args[]) { Frame frmFrame=new Frame(); Panel pnlPanel=new Panel(); Label lbLabel=new Label("Hello!"); Button btnButton=new Button("Press me"); List ...
Frank Wierzbicki announced that jython 2.2 has been released! jython catches up to Python 2.2 and now has the following features: new-style classesJava List integrationPEP 302 implementationiteratorsgenerators__future__ divisionsupport for running on modern JVMsa new installerssl and non-blocking support for socket See the jython Bibliography and more jython postings for mo...
昨天好奇 安装上了jython.试了一下,和可爱的python一样简单。 晚上的时候,发现个问题,让我对jython很失望。 jpython中 >>len('你好d') 返回3 python >>len('你好d') 返回3 中返回5 又遇到java中的问题了。java中String类型的中文长度是1,需要变成byte[]型后求真实的长度(是2才好啊)。 可惜,只好放弃jython。如果jython是中国人开发的话,可能就很好处理这个问题了。 本文来自ChinaUnix博客,如果查看原文请点:htt...
我需要在bsf中使用jython
写好的程序,单独使用jython是可以用的,但是放到bsf中,就提示有错。
很多模块,如re ,都找不到,请问如何在bsf中增加jython的模块。
2009/03/13 12:45:15 BSF failure while executing listbox script: exception from jython: Traceback (innermost last):
File "
下载地址: http://sourceforge.net/project/showfiles.php?group_id=12867&package_id=12218&release_id=485053 jython 终于有点动静了。 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6123/showart_246066.html