learn for code

<%@ page import="jade.core.*" %>
<jsp:useBean id="oldsnooper" class="examples.jsp.Snooper" scope="application">
<% try {
// Does not work for the moment
// JADE 1.4 String [] args = {"-platform", "buffer:examples.jsp.Buffer"};
String [] args = {"-container"};
jade.Boot.main(args);
System.out.println("Jade Inited()");
System.out.println("Start");
oldsnooper.doStart("oldsnooper");
} catch (Exception ex) {
out.println(ex);
}
%>
</jsp:useBean>

<% oldsnooper.snoop(request.getRemoteHost()+" "+(new java.util.Date())+" "+request.getRequestURI()); %>
<HTML>
<BODY>
It works !!!!
</BODY>
</HTML>

jade启动的方式原来还有jade.Boot.main受教了。把参数放在args里,就像是在用命令行一样。
String[] args2 = { "-gui" };
jade.Boot.main(args2);
Runtime rt = Runtime.instance();
Profile pMain = new ProfileImpl(null, 5689, null);
AgentContainer mc = rt.createMainContainer(pMain);
rt.setCloseVM(false);
try {
AgentController rma = mc.createNewAgent("rma",
"jade.tools.rma.rma", new Object[0]);
rma.start();

} catch (StaleProxyException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Table of Contents LEARNING HOW TO PROGRAM Lesson 1 - Why should you learn how to program? Lesson 2 - Basic principles of learning a programming language UNIT 1 - VARIABLES, TYPES, EXPRESSIONS, AND STATEMENTS Lesson 3 - Introducing Python: a programming language Lesson 4 - Variables and expressions: giving names and values to things Lesson 5 - Object types and statements of code 46 Lesson 6 - Capstone project: your first Python program-convert hours to minutes UNIT 2 - STRINGS, TUPLES, AND INTERACTING WITH THE USER Lesson 7 - Introducing string objects: sequences of characters Lesson 8 - Advanced string operations Lesson 9 - Simple error messages Lesson 10 - Tuple objects: sequences of any kind of object Lesson 11 - Interacting with the user Lesson 12 - Capstone project: name mashup UNIT 3 - MAKING DECISIONS IN YOUR PROGRAMS Lesson 13 - Introducing decisions in programs Lesson 14 - Making more-complicated decisions Lesson 15 - Capstone project: choose your own adventure UNIT 4 - REPEATING TASKS Lesson 16 - Repeating tasks with loops Lesson 17 - Customizing loops Lesson 18 - Repeating tasks while conditions hold Lesson 19 - Capstone project: Scrabble, Art Edition UNIT 5 - ORGANIZING YOUR CODE INTO REUSABLE BLOCKS Lesson 20 - Building programs to last Lesson 21 - Achieving modularity and abstraction with functions Lesson 22 - Advanced operations with functions Lesson 23 - Capstone project: analyze your friends UNIT 6 - WORKING WITH MUTABLE DATA TYPES Lesson 24 - Mutable and immutable objects Lesson 25 - Working with lists Lesson 26 - Advanced operations with lists Lesson 27 - Dictionaries as maps between objects Lesson 28 - Aliasing and copying lists and dictionaries Lesson 29 - Capstone project: document similarity UNIT 7 - MAKING YOUR OWN OBJECT TYPES BY USING OBJECT-ORIENTED PROGRAMMING Lesson 30 - Making your own object types Lesson 31 - Creating a class for an object type Lesson 32 - Working with your own object types Lesson 33 - Customizing classes Lesson
Learn to Program with Python by Irv Kalb English | 7 Sept. 2016 | ISBN: 148421868X | 288 Pages | PDF (True) | 7.33 MB Get started in the world of software development: go from zero knowledge of programming to comfortably writing small to medium-sized programs in Python. Programming can be intimidating (especially when most books on software require you to know and use obscure command line instructions) but it doesn’t have to be that way! In Learn to Program with Python, author Irv Kalb uses his in-person teaching experience to guide you through learning the Python computer programming language. He uses a conversational style to make you feel as though he is your personal tutor. All material is laid out in a thoughtful manner, each lesson building on previous ones. Many real–world analogies make the material easy to relate to. A wide variety of well-documented examples are provided. Along the way, you’ll develop small programs on your own through a series of coding challenges that reinforce the content of the chapters. What You Will Learn: Learn fundamental programming concepts including: variables and assignment statements, functions, conditionals, loops, lists, strings, file input and output, Internet data, and data structures Get comfortable with the free IDLE Interactive Development Environment (IDE), which you will use to write and debug all your Python code - no need to use the command line! Build text-based programs, including a number of simple games Learn how to re-use code by building your own modules Use Python's built-in data structures and packages to represent and make use of complex data from the Internet Who this book is for: This book assumes that you have absolutely no prior knowledge about programming. There is no need to learn or use any obscure Unix commands. Students of any age who have had no exposure to programming and are interested in learning to do software development in the Python language. The book can be used as a text book associated with a high school or college introduction to computer science course. Secondly, people who have had exposure to some computer language other than Python, who would like to build good habits for programming in Python.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值