<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- TUTORIAL start: diff variable needed for unique title per page -->
<title>介绍 Jython,第 1 部分:轻轻松松编写 Java 程序</title>
<!-- TUTORIAL end: diff variable needed for unique title per page -->
<meta http-equiv="PICS-Label" content="(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))">
<link rel="schema.DC" href="http://purl.org/DC/elements/1.0/">
<link rel="SHORTCUT ICON" href="http://www.ibm.com/favicon.ico">
<meta name="Owner" content="dw@cn.ibm.com">
<meta name="DC.Language" scheme="rfc1766" content="zh-CN">
<meta name="IBM.Country" content="CN">
<meta name="IBM.SpecialPurpose" content="SP001">
<meta name="IBM.PageAttributes" content="sid=1003,1004">
<meta name="Source" content="v16 Template Generator">
<meta name="Robots" content="index,follow">
<!-- TUTORIAL start: diff variable needed for unique abstract per page -->
<meta name="Abstract" content="这是两部分教程的第 1 部分,介绍了 Jython 脚本语言,提供了开始开发基于 Jython 的应用程序所需的足够知识。在本教程的前半部分,您将了解一些 Jython 概念和使用 Jython 编程的基础知识,包括访问选项和文件编译、语法和数据类型、程序结构、过程语句和函数。">
<!-- TUTORIAL end: diff variable needed for unique abstract per page -->
<!-- TUTORIAL start: diff variable needed for unique desc per page -->
<meta name="Description" content="这是两部分教程的第 1 部分,介绍了 Jython 脚本语言,提供了开始开发基于 Jython 的应用程序所需的足够知识。在本教程的前半部分,您将了解一些 Jython 概念和使用 Jython 编程的基础知识,包括访问选项和文件编译、语法和数据类型、程序结构、过程语句和函数。">
<!-- TUTORIAL end: diff variable needed for unique desc per page -->
<!-- TUTORIAL start: diff variable needed for unique keywords per page -->
<meta name="Keywords" content="Java,Jython, 脚本语言, tttjca">
<!-- TUTORIAL end: diff variable needed for unique keywords per page -->
<meta name="DC.Date" scheme="iso8601" content="2004-05-08">
<!-- TUTORIAL start: diff variable needed for type -->
<meta name="DC.Type" scheme="IBM_ContentClassTaxonomy" content="CT321">
<!-- TUTORIAL end: diff variable needed for type -->
<meta name="DC.Subject" scheme="IBM_SubjectTaxonomy" content="TT300">
<meta scheme="IBM_WTMCategory" name="IBM.WTMCategory" content="SOFDCJVACN">
<meta name="DC.Rights" content="© Copyright IBM Corporation 2004">
<meta name="IBM.Effective" scheme="W3CDTF" content="2004-05-08">
<!-- TUTORIAL start: diff variable needed for unique title per page -->
<meta name="title" content="介绍 Jython,第 1 部分:轻轻松松编写 Java 程序">
<!-- TUTORIAL end: diff variable needed for unique title per page -->
<!-- HEADER_SCRIPTS_AND_CSS_INCLUDE -->
<link href="section13_files/all.css" media="all" rel="stylesheet" title="www" type="text/css">
<link href="section13_files/screen.css" media="screen,projection" rel="stylesheet" title="www" type="text/css">
<link href="section13_files/screen-uas.css" media="screen,projection" rel="stylesheet" title="www" type="text/css">
<link href="section13_files/screen-fonts.css" media="screen,projection" rel="stylesheet" title="www" type="text/css">
<link href="section13_files/handheld.css" media="handheld" rel="stylesheet" title="www" type="text/css">
<link href="section13_files/print.css" media="print" rel="stylesheet" title="www" type="text/css">
<!-- dW-specific CSS -->
<link href="section13_files/dw-screen.css" media="screen,projection" rel="stylesheet" title="www" type="text/css">
<link href="section13_files/dw-local-site.css" media="screen,projection" rel="stylesheet" title="www" type="text/css">
<link href="section13_files/dw-mf2012-01.css" rel="stylesheet" title="www" type="text/css">
<link href="section13_files/jquery.css" media="screen,projection" rel="stylesheet" title="www" type="text/css">
<script src="section13_files/ibmcommon.js" type="text/javascript">//</script><link title="IBM Search" href="http://www.ibm.com/search/opensearch/description.xml" type="application/opensearchdescription+xml" rel="search">
<script src="section13_files/dynamicnav.js" type="text/javascript">//</script>
<script type="text/javascript" src="section13_files/dropdown.js">//</script>
<!-- dW functional JS -->
<script language="JavaScript" src="section13_files/urltactic.js" type="text/javascript"></script>
<!-- Rating_START -->
<script language="JavaScript" type="text/javascript">
// <![CDATA[
dwr = {};
dwr.clickhere = '点击评分';
dwr.stars = '星';
dwr.star = '星';
dwr.avgRatingOf = '平均分';
dwr.youRated = '您的评分是';
dwr.avgRating = '平均分';
dwr.basedOnVote = '共 {1} 个评分'; // {1} to be substitue by code
dwr.basedOnVotes = '共 {1} 个评分';
dwr.leftParen = '(';
dwr.rightParen = ' )';
dwr.space = ' ';
dwr.yourRating = '您的评分';
// ]]>
</script>
<script language="JavaScript" src="section13_files/artrating.js" type="text/javascript"></script>
<style type="text/css">
.metavalue {
display: none;
}
</style>
<!-- Rating_END --><!-- RESERVED_HEADER_INCLUDE -->
<script language="javascript" src="section13_files/ajax1.js" type="text/javascript"></script>
<script language="javascript" src="section13_files/search_counter-maverick.js" type="text/javascript"></script>
<script language="javascript" src="section13_files/request_referer_capture-maverick.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
setDefaultQuery('defaultHere');
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--
function openNewWindow(url,tar,arg){window.open(url,tar,arg);}
//-->
</script>
<!-- Include file support -->
<script language="JavaScript" type="text/javascript">
(function($) {
jQuery.extend({
getInc: function(u,d){
if(u==null)return;
jQuery.ajax({
type: "GET",
url: u,
dataType: "text",
success: function(t) {
jQuery(d).html(t);
ibmCommon.initShowHide(jQuery(d).children()[0]);
},
async: true
});
}
});
})(jQuery);
</script>
<script charset="UTF-8" src="section13_files/flash-detect.js" type="text/javascript" id="flashdetect"></script><script charset="UTF-8" src="section13_files/cnzh-utf8.js" type="text/javascript" id="mhMenu"></script><script charset="UTF-8" src="section13_files/Controller" type="text/javascript" id="wiBundle"></script></head>
<body id="ibm-com">
<div id="ibm-top" class="ibm-landing-page">
<!-- MASTHEAD_BEGIN -->
<!-- MASTHEAD_BEGIN -->
<div class="ibm-access"><a href="#ibm-content">跳转到主要内容</a></div>
<div id="ibm-masthead-dw">
<!-- TOP ROW -->
<div id="dw-masthead-top-row">
<ul id="ibm-mast-options-dw" class="cn">
<li id="dw-mast-top-0">
<a class="" href="http://www.ibm.com/developerworks/dwwi/DWAuthRouter?m=loginpage&lang=zh&d=http%3A%2F%2Fwww.ibm.com%2Fdeveloperworks%2Fcn%2Feducation%2Fjava%2Fj-jython1%2Fsection13.html" title="">登录 (或注册)</a>
</li>
<li id="dw-mast-top-1" class="dw-mast-top-1-cn">
<a href="#SELECTLANG">中文</a><img class="dw-preload" src="section13_files/arrow-down-active.gif" alt="" width="8" heig
评论30