2022年1月17日

面向对象day01

摘要: package oop;public class Demo1 { public static void main(String[] args) { Demo1 demo1 = new Demo1(); System.out.println(demo1.sayHello()); System.out. 阅读全文

posted @ 2022-01-17 11:00 cron501 阅读(30) 评论(0) 推荐(0)

2020年9月2日

python for循环练习(初级)

摘要: for循环练习1 for i in range(4): print(i) D:\尚硅谷Python\venv\Scripts\python.exe D:/尚硅谷Python/test.py0123 for循环练习2 for x in range(1,40,5): #间隔5 print(x) D:\尚 阅读全文

posted @ 2020-09-02 15:49 cron501 阅读(1584) 评论(0) 推荐(0)

2020年8月21日

稀疏数组练习

摘要: package array; public class 稀疏数组7 { public static void main(String[] args) { //1、定义二维数组的棋盘11行11列,0是空棋,1白棋,2黑棋 int[][] array = new int[11][11]; //棋盘放入黑 阅读全文

posted @ 2020-08-21 00:01 cron501 阅读(112) 评论(0) 推荐(0)

2020年8月18日

day04_数组_多维数组_冒泡排序_稀疏数组

摘要: 1、java数组 package array; public class 数组 { //变量的类型 变量的名字 = 变量的值 //数组类型 public static void main(String[] args) { int[] nums; //1.声明一个数组 //int nums2[];不常 阅读全文

posted @ 2020-08-18 16:13 cron501 阅读(93) 评论(0) 推荐(0)

2020年8月17日

day03_java_if_for_while_dowhile判断

摘要: 1、if单分支 package scanner;​import java.util.Scanner;​public class if单选择结构 { public static void main(String[] args) { Scanner scanner = new Scanner(Syste 阅读全文

posted @ 2020-08-17 20:18 cron501 阅读(501) 评论(0) 推荐(0)

2020年8月16日

day02 java_八大基本数据类型

摘要: 1、八大基本数据类型 public class hello { public static void main(String[] args) { //八大基本数据类型 int num1 = 10; //最常用 byte num2 = 20; short num3 =30; long num4 = 3 阅读全文

posted @ 2020-08-16 17:07 cron501 阅读(83) 评论(0) 推荐(0)

2020年8月13日

day01_java_hello_world

摘要: 第一个程序,向世界发声 public class hello{ public static void main(String[] args){ System.out.println("Hello,World!"); } } 快速输入 public class XiaoYu { public stat 阅读全文

posted @ 2020-08-13 23:08 cron501 阅读(65) 评论(0) 推荐(0)

导航