2021年8月12日
摘要: 1. 无序号条例式清单<ul>与<li> 格式:<ul>...........无序条列清单的开始 <li>...</li>表示一个项目 <li>...</li>表示一个项目 </ul>无序条列清单的结束 属性:<li> 属性名称:type 属性值:dise (实心圆) ,circle(空心圆),sq 阅读全文
posted @ 2021-08-12 16:30 张德明 阅读(65) 评论(0) 推荐(0)
  2021年8月7日
摘要: 1.HTML的基本结构:标题、段落、页面分隔、注释等等。 <html> 跟控制标记 <head> 头控制标记 <title>标题</title> 标题标记 </head> 头控制标记(尾) <body> 网页显示区域 </body> </html> 跟控制标记(尾) (1)<html>.....</ 阅读全文
posted @ 2021-08-07 19:37 张德明 阅读(1403) 评论(0) 推荐(0)
  2020年10月29日
摘要: package 打印购物小票;public class T1{ public static void main(String[] args) { int tprice=245; int xieprice=570; int paiprice=320; double zong=1104.0; int m 阅读全文
posted @ 2020-10-29 12:57 张德明 阅读(292) 评论(0) 推荐(0)
  2020年10月22日
摘要: package 多维数组;public class Example { public static void main(String[] args) { int [][] arr =new int [3][]; //定义一个长度为3的二维数组 arr[0]=new int[] {11,12}; // 阅读全文
posted @ 2020-10-22 11:17 张德明 阅读(102) 评论(0) 推荐(0)
摘要: package 猜数字游戏;import java.util.Random;import java.util.Scanner;public class GuessNumber { public static void main(String[] args) { int randomNumber=ne 阅读全文
posted @ 2020-10-22 11:14 张德明 阅读(123) 评论(0) 推荐(0)
摘要: 1.package 数组的常见操作;public class Example { public static void main(String[] args) { int [] arr= {1,2,3,4,5}; //定义数组 for (int i=0;i<arr.length;i++) { Sys 阅读全文
posted @ 2020-10-22 11:09 张德明 阅读(212) 评论(0) 推荐(0)
  2020年10月20日
摘要: 1.package 数组定义;public class Example { public static void main(String[] args) { int [] arr; //声明变量 arr=new int[3]; //创建数组对象 System.out.println("arr[0]= 阅读全文
posted @ 2020-10-20 10:53 张德明 阅读(143) 评论(0) 推荐(0)
摘要: package 随机点名器;import java.util.Random;import java.util.Scanner;public class CallName { public static void addStudentName(String[] stduents) { //*存储全班同 阅读全文
posted @ 2020-10-20 10:47 张德明 阅读(473) 评论(0) 推荐(0)
  2020年10月14日
摘要: package if条件语句;public class Example03 { public static void main(String[] args) { int week =5; switch (week) { case 1: System.out.println("星期一"); break 阅读全文
posted @ 2020-10-14 16:30 张德明 阅读(93) 评论(0) 推荐(0)
摘要: package if条件语句;public class Example02 { public static void main(String[] args) { int grade=75; //定义学生成绩 if(grade>80) { //满足条件grade>80 System.out.print 阅读全文
posted @ 2020-10-14 16:24 张德明 阅读(217) 评论(0) 推荐(0)