摘要: public class day_4_1 { public static void main(String[] args) { /* while循环 格式: 初始化条件; while(判断条件){ 语句体; 控制条件; } 执行流程: 初始化条件 --> 判断条件 --> 语句体 --> 控制条件 阅读全文
posted @ 2024-03-05 20:23 公子Learningcarer 阅读(4) 评论(0) 推荐(0) 编辑
摘要: public class day_4 { public static void main(String[] args) { /* for循环 格式: for(初始化条件;判断条件;控制条件;){ 语句体 } 注意: 初始化条件:定义一个变量,并且赋值 判断条件:关系运算符 控制条件:自增+1 语句体 阅读全文
posted @ 2024-03-05 19:53 公子Learningcarer 阅读(3) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; public class day_3 { public static void main(String[] args) { //switch 语句 /*格式 switch(表达式){ case 取值1: 语句体; break; case 取值2: 阅读全文
posted @ 2024-03-04 11:55 公子Learningcarer 阅读(3) 评论(0) 推荐(0) 编辑
摘要: public class day_2_3 { public static void main(String[] args) { /* if语句 */ int i = 1; int j = 1; //三元运算 int max = i > 2 ? i : 2; // if表达式 if (i > j) { 阅读全文
posted @ 2024-03-04 10:36 公子Learningcarer 阅读(18) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner;// 导包 public class day2_2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in);//创建对象 System.out.pr 阅读全文
posted @ 2024-03-01 19:48 公子Learningcarer 阅读(2) 评论(0) 推荐(0) 编辑
摘要: public class day2_1 { public static void main(String[] args) { /* 三元运算符 格式:条件表达式 ? 表达式1 : 表达式2 执行流程: 如果条件表达式为true,那么执行表达式1; 如果条件表达式为false,那么执行表达式2; 注意 阅读全文
posted @ 2024-03-01 19:37 公子Learningcarer 阅读(2) 评论(0) 推荐(0) 编辑
摘要: //运算符 public class day2 { public static void main(String[] args) { int a = 3; int b = 2; // 加号运算符 System.out.println("a+b="+(a+b));// 代码计算括号的优先级高于字符串 阅读全文
posted @ 2024-03-01 18:11 公子Learningcarer 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-03-01 18:07 公子Learningcarer 阅读(2) 评论(0) 推荐(0) 编辑
摘要: java 变量 2大类4小类8小种 基本数据类型 整型 byte short int long 浮点型 float double 字符型 char 布尔型 boolean 引用数据类型 (未学) public class day1 { public static void main(String[] 阅读全文
posted @ 2024-03-01 15:21 公子Learningcarer 阅读(2) 评论(0) 推荐(0) 编辑
摘要: # 使用Python内置的subprocess模块来执行Python脚本 # 使用注意: # 1,依赖包需要提前导入至脚本中 # 2,script_path变量是脚本得绝对路径 # 3,filename变量是脚本得名称 # 搭配vue页面使用 # 想法:页面支持导入,编辑,执行脚本 # 导入:默认指 阅读全文
posted @ 2024-01-10 10:31 公子Learningcarer 阅读(36) 评论(0) 推荐(0) 编辑