自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 html制作猜大小游戏

<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <body> <table> <tr> <td><input type="text" id=...

2021-08-10 08:44:33 327

原创 HTML制作简易计算机(一开始错了不知道哪里错的,看了很久才发现全都是小错误,注意细节。错误在最后)

<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <body> <table> <tr> <td><img src="" /></...

2021-08-09 20:11:51 216

原创 2021-08-06 Html,构建试卷

<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>Homework</title> </head> <body><h1>统一建模语言理论测试</h1> <td><b>考试科目:统一建模语言</b></td>&l...

2021-08-06 08:49:15 87

原创 2021-08-06随机生成一个整数。1-1000用户输入一个整数,程序给出与存储的数字是“大”或者“小”,知道用户猜到这个数字位置。如果中途用户希望程序退出,输入0可以退出。int num =

@Testpublic void test6(){ int count = 0; System.out.println("----猜数字游戏----"); int answer = (int)(Math.random()*100+1); Scanner scanner = new Scanner(System.in); while (true){ System.out.println("请输入1-100之...

2021-08-06 08:41:28 475

原创 打印正三角倒三角,

@Testpublic void zy2(){ for (int i = 1; i <= 6 ; i++) {//快捷输入完i=0,并不是1,记得改 for (int j = 1; j <= 6-i ; j++) { System.out.print(" ");//是print,而不是println,快捷输入玩记得删掉 } for (int k = 1; k <= 2*i-1 ; k++) { .

2021-08-06 08:39:58 49

原创 输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。

@Testpublic void test5() { int num = 0, chartra = 0, blak = 0, other = 0; Scanner scanner = new Scanner(System.in); System.out.println("请输出字符串"); String string = scanner.nextLine(); char x[] = string.toCharArray(); for (int i = .

2021-08-06 08:33:51 151

原创 冒泡排序。。。

public class study { @Test // 冒泡排序 public void test1(){ int[] array = {40,17,21,1}; for (int i = 1; i <= array.length-1 ; i++) { for (int j = 0; j < array.length-i; j++) { if (array[j] > ar.

2021-08-06 08:28:55 43

原创 遍历100到200中的素数并打印

@Testpublic void test7s(){ for (int i = 100; i <= 200 ; i++) { boolean isSuShu = true; //i=100:看100是不是素数 for (int j = 2; j <= i -1 ; j++) { if (i % j == 0){ isSuShu = false; br.

2021-08-06 08:27:17 74

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除