Head First Programming - hlmix.py(final)

摘要: hlmix.py(final) 阅读全文
posted @ 2013-01-07 20:04 mybluecode 阅读(127) 评论(0) 推荐(0) 编辑

Head First Programming - hlmix.py

摘要: hlmix.py 阅读全文
posted @ 2013-01-07 18:59 mybluecode 阅读(145) 评论(0) 推荐(0) 编辑

Head First Programming - headex.py

摘要: headex.py 阅读全文
posted @ 2013-01-07 17:35 mybluecode 阅读(213) 评论(0) 推荐(0) 编辑

java语言的科学与艺术-编程练习11.X

摘要: 1 //使用Eratoshene滤网来生成2~1000之间的素数。 2 import acm.program.*; 3 public class Eratosthene extends ConsoleProgram { 4 public void run(){ 5 prime = new int[999]; 6 for(int i = 0; i < 999; i++) { 7 prime[i] = i + 2; 8 } 9 int j = 0;10 int num =0;11 ... 阅读全文
posted @ 2013-01-03 14:36 mybluecode 阅读(203) 评论(0) 推荐(0) 编辑

java语言的科学与艺术-编程练习11.1

摘要: //读入7名裁判所打的分数,计算去掉最高分和最低分之后剩余的5个分数的平均值。import acm.program.*;public class score extends ConsoleProgram{ public void run(){ score = new int[NUM]; int sum = 0; double average = 0; for (int i = 0; i < NUM; i++) { score[i] = readInt("Input the score " + i + " : "... 阅读全文
posted @ 2013-01-03 14:35 mybluecode 阅读(152) 评论(0) 推荐(0) 编辑

google hacking penetration tester

摘要: Google 的查询参数变量值说明q或者as_q搜索查询搜索查询as_eq搜索关键字将从搜索中排除的关键字start0 到最大结果数用于显示结果页面。结果0是第一页结果页面的第一个结果num maxResults1到100每页所显示的结果数filter0或1如果filter为0,则显示可能重复的结果restrict限定代码限定位于某个特定的国家的结果hl语言代码这个参数描述了Google用来显示结果所用的语言。可以设为你的母语。查找到的页面未经过翻译lr语言代码语言限定。仅显示该种语言的页面ieUTF-8Web搜索的输入编码。Google建议使用UTF-8oeUTF-8Web搜索的输出编码。G 阅读全文
posted @ 2013-01-01 21:22 mybluecode 阅读(210) 评论(0) 推荐(0) 编辑

java语言的科学与艺术-PigLatin.java

摘要: 1 /* 2 * File: PigLatin.java 3 * -------------- 4 * This file takes a line of text and converts each word into Pig Latin. 5 * The rules for forming Pig Latin words are as follows: 6 * - If the word begins with a vowel, add "way" to the end of the word. 7 * - If the word begins with a conso 阅读全文
posted @ 2012-12-31 18:03 mybluecode 阅读(467) 评论(0) 推荐(0) 编辑

java语言的科学与艺术-编程练习8.2

摘要: import acm.util.*;import acm.program.*;//creates random wordpublic class CreateRandomWord extends ConsoleProgram { public void run(){ for(int i = 0; i < 5; i++) { println(randomWord()); } } private String randomWord(){ String result = ""; for(int i... 阅读全文
posted @ 2012-12-31 17:59 mybluecode 阅读(178) 评论(0) 推荐(0) 编辑

java语言的科学与艺术-编程练习10.11

摘要: 1 import acm.graphics.*; 2 import acm.program.*; 3 import acm.gui.*; 4 import java.awt.event.*; 5 import javax.swing.*; 6 7 //单位转换程序; 8 public class LengthConverter extends Program { 9 //初始化界面; 10 public void init() { 11 setLayout(new TableLayout(3, 2)); 12 lengthC... 阅读全文
posted @ 2012-12-31 17:58 mybluecode 阅读(310) 评论(0) 推荐(0) 编辑

java语言的科学与艺术(灰度图像)

摘要: 1 import acm.graphics.*; 2 import acm.program.*; 3 4 public class imageConvert extends GraphicsProgram { 5 public void run(){ 6 GImage image = new GImage("Penguins.jpg"); 7 image = applyAveragingFilter(image); 8 add(image); 9 }10 /*11 * Creates a new image ... 阅读全文
posted @ 2012-12-31 17:56 mybluecode 阅读(256) 评论(0) 推荐(0) 编辑