01、数据结构——数组

news2024/9/20 22:43:16

一、数据结构与算法

  • 数据结构是一门研究组织数据方式的学科,有了编程语言也就有了数据结构。学好数据结构可以编写出更加漂亮、更加有效率的代码。
  • 程序=数据结构+算法
  • 数据结构是算法的基础

二、稀疏数组:

1、基本介绍:

当一个数组中大部分元素为0,或者为同一个值的数组时,可以使用稀疏数组来保存该数组

2、稀疏数组的处理方法是

(1)记录数组一共有几行几列,有多少个不同的值

(2)把具有不同值的元素的行列及值记录在一个小规模的数组中,从而缩小程序的规模

 3、应用实例

(1)使用稀疏数组来保留类似前面的二维数组(棋盘、地图等等)

(2)把稀疏数组存盘,并且可以重新恢复原来的二维数组数

(3)整体思路分析

二级数据转稀疏数组的思路:

  • 遍历原始的二维数组,得到有效数据的个数sum
  • 根据sum就可以创建稀疏数组sparseArr int[sum + 1][3]
  • 将二维数组的有效数据存入到稀疏数组

稀疏数组转原始二维数组的思路:

  • 先读取稀疏数组的第一行,根据第一行的数据,创建原始的二维数组
  • 在读取稀疏数组后几行的数据,并赋给原始的二维数组即可

(4)代码实现

package com.atguigu.sparse.array;

public class SparseArray {
    public static void main(String[] args) {
        //创建一个原始的二维数组11*11
        //0:表示没有棋子,1:表示黑子,2:表示蓝子
        int chessArr1[][]=new int[11][11];
        chessArr1[1][2]=1;
        chessArr1[2][3]=2;
        //输出原始的二维数组
        System.out.println("原始的二维数组:");
        for(int[] row:chessArr1){
            for(int data:row){
                System.out.printf("%d\t",data);
            }
            System.out.println();
        }

        //将二维数组转稀疏数组的思路:
        //1、先遍历二维数组,得到非0数据的个数
        int sum=0;
        for(int i=0;i<11;i++){
            for(int j=0;j<11;j++){
                if (chessArr1[i][j] != 0) {
                    sum++;
                }
            }
        }

        //2、创建对应的稀疏数组
        int sparseArr[][]=new int[sum+1][3];
        //给稀疏数组赋值
        sparseArr[0][0]=11;
        sparseArr[0][1]=11;
        sparseArr[0][2]=sum;

        //遍历二维数组,将非0的值存放到sparseArr中
        int count=0;//count用于记录是第几个非0数据
        for(int i=0;i<11;i++){
            for(int j=0;j<11;j++){
                if (chessArr1[i][j] != 0) {
                    count++;
                    sparseArr[count][0]=i;
                    sparseArr[count][1]=j;
                    sparseArr[count][2]=chessArr1[i][j];
                }
            }
        }

        //输出稀疏数组的形式
        System.out.println();
        System.out.println("得到的稀疏数组:");
        for(int i=0;i<sparseArr.length;i++){
            System.out.printf("%d\t%d\t%d\t",sparseArr[i][0],sparseArr[i][1],sparseArr[i][2]);
        }
        System.out.println();

        //将稀疏数组---》恢复成原始的二维数组
        //1、先读取稀疏数组的第一行,根据第一行的数据,创建原始的二维数组
        int chessArr2[][]=new int[sparseArr[0][0]][sparseArr[0][1]];

        //2、输出恢复后的二维数组
        for(int i=1;i<sparseArr.length;i++){
            chessArr2[sparseArr[i][0]][sparseArr[i][1]]=sparseArr[i][2];
        }

        System.out.println();
        System.out.println("恢复后的二维数组:");
        for(int[] row:chessArr1){
            for(int data:row){
                System.out.printf("%d\t",data);
            }
            System.out.println();
        }
    }
}
//"C:\Program Files\Java\jdk-19\bin\java.exe" "-javaagent:D:\IntelliJ IDEA 2022.2.3\lib\idea_rt.jar=56110:D:\IntelliJ IDEA 2022.2.3\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath D:\java-idea-2022.10.26\DataStructure\out\production\DataStructure com.atguigu.sparse.array.SparseArray
//原始的二维数组:
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	1	0	0	0	0	0	0	0	0	
//0	0	0	2	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//
//得到的稀疏数组:
//11	11	2	1	2	1	2	3	2	
//======================
//
//恢复后的二维数组:
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	1	0	0	0	0	0	0	0	0	
//0	0	0	2	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//0	0	0	0	0	0	0	0	0	0	0	
//
//进程已结束,退出代码0

4、练习

 三、数组模拟队列

1、基本介绍:

(1)队列是一个有序列表,可以用数组或是链表来实现

(2)遵循先入先出的原则

2、数组模拟队列

(1)队列本身是有序列表,若使用数组的结构来存储队列的数据,则队列数组的声明如下图,其中 maxSize是该队列的最大容量

(2)因为队列的输出、输入是分别从前后端来处理,因此需要两个变量front及rear分别记录队列前后端的下标,front会随着数据输出而改变,而rear则是随着数据输入而改变

 (3)addQueue:将数据存入队列。思路:

1)将尾指针往后移:rear+1,当front=rear [ 空 ]

2)若尾指针rear小于队列的最大下标maxSize-1,则将数据存入rear所指的数组元素中,否则无法存入数据,rear==maxSize-1 [ 队列满 ]

3)注:

rear是队列最后 [ 含 ]

front是队列最前元素 [不含]

4)代码实现:

package com.atguigu.sparse.queue;

import java.util.Scanner;

public class ArrayQueueDemo {
    public static void main(String[] args) {
        ArrayQueue queue = new ArrayQueue(3);
        char key=' ';//接收用户输入
        Scanner scanner = new Scanner(System.in);
        boolean loop=true;
        //输出一个菜单
        while (loop) {
            System.out.println("s(show): 显示队列");
            System.out.println("e(exit): 退出队列");
            System.out.println("a(add): 添加数据到队列");
            System.out.println("g(get): 从队列中取出数据");
            System.out.println("h(head): 查看队列头的数据");
            key=scanner.next().charAt(0);//接收一个字符
            switch(key){
                case 's':
                    queue.showQueue();
                    break;
                case 'a':
                    System.out.println("输出一个数:");
                    int value=scanner.nextInt();
                    queue.addQueue(value);
                    break;
                case 'g':
                    try {
                        int res=queue.getQueue();
                        System.out.printf("取出的数据:%d\n",res);
                    } catch (Exception e) {
                        //TODO:handle exception
                        System.out.println(e.getMessage());
                    }
                    break;
                case 'h':
                    try {
                        int res=queue.headQueue();
                        System.out.printf("队头的数据:%d\n",res);
                    } catch (Exception e) {
                        //TODO:handle exception
                        System.out.println(e.getMessage());
                    }
                    break;

                case 'e':
                    scanner.close();
                    loop=false;
                    break;

                default:
                    break;
            }

        }
    }
}
//使用数组模拟队列-编写一个ArrayQueue类
class ArrayQueue{
    private int maxSize;//表示数组的最大容量
    private int front;//队列头
    private int rear;//队列尾
    private int[] arr;//存放数据

    //创建队列的构造器
    public ArrayQueue(int arrMaxSize){
        maxSize=arrMaxSize;
        arr=new int[maxSize];
        front=-1;//指向队列头的前一个位置
        rear=-1;//指向队列尾的最后一个数据
    }

    //判断队列是否满
    public boolean isFull(){
        return rear==maxSize-1;
    }

    //判断队列是否为空
    public boolean isEmpty(){
        return rear==front;
    }

    //添加数据到队列
    public void addQueue(int n){
        //判断队列是否满
        if (isFull()) {
            System.out.println("队列已满,不能加入数据!");
            return;
        }
        rear++;//让rear后移
        arr[rear]=n;
    }

    public int getQueue(){
        //判断队列是否为空
        if (isEmpty()) {
            //抛出异常
            throw new RuntimeException("队列空,不能取数据");
        }
        front++;
        return arr[front];
    }

    //显示队列的所有数据
    public void showQueue(){
        //遍历
        if (isEmpty()) {
            System.out.println("队列空的,没有数据");
            return;
        }
        for(int i=0;i<arr.length;i++){
            System.out.printf("arr[%d]=%d\n",i,arr[i]);
        }
    }

    //显示队列的头数据,注意不是取出数据
    public int headQueue(){
        //判断
        if (isEmpty()) {
            throw new RuntimeException("队列空的,没有数据");
        }
        return arr[front+1];
    }
}
//"C:\Program Files\Java\jdk-19\bin\java.exe" "-javaagent:D:\IntelliJ IDEA 2022.2.3\lib\idea_rt.jar=55292:D:\IntelliJ IDEA 2022.2.3\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath D:\java-idea-2022.10.26\DataStructure\out\production\DataStructure com.atguigu.sparse.queue.ArrayQueueDemo
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//s
//队列空的,没有数据
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//a
//输出一个数:
//10
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//h
//队头的数据:10
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//g
//取出的数据:10
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//e
//
//进程已结束,退出代码0

 (4)问题分析并优化

1)目前数组使用一次就不能用,没有达到利用的效果

2)使用算法将这个数组,改进成一个环形的队列

四、数组模拟环形队列

1、思路:

(1)调整front变量的含义:front指向队列的第一个元素

(2)调整rear变量的含义:rear指向队列最后一个元素的后一个位置,因为希望空出一个空间作为约定,rear的初始值=0

(3)队列为满时的条件,(rear+1)%maxSize=front 

尾索引的下一个为头索引时表示队列满,即将队列容量空出一个作为约定

(4)队列为空时的条件,rear=front 

(5)队列中有效的数据的个数 (rear+maxSize-front)%maxSize

package com.atguigu.sparse.queue;

import java.util.Scanner;

public class CircleArrayQueueDemo {
    public static void main(String[] args) {
        System.out.println("测试数组模拟环形队列的案例");
        CircleArray queue = new CircleArray(4);//队列的有效数据最大是3
        char key=' ';//接收用户输入
        Scanner scanner = new Scanner(System.in);
        boolean loop=true;
        //输出一个菜单
        while (loop) {
            System.out.println("s(show): 显示队列");
            System.out.println("e(exit): 退出队列");
            System.out.println("a(add): 添加数据到队列");
            System.out.println("g(get): 从队列中取出数据");
            System.out.println("h(head): 查看队列头的数据");
            key=scanner.next().charAt(0);//接收一个字符
            switch(key){
                case 's':
                    queue.showQueue();
                    break;
                case 'a':
                    System.out.println("输出一个数:");
                    int value=scanner.nextInt();
                    queue.addQueue(value);
                    break;
                case 'g':
                    try {
                        int res=queue.getQueue();
                        System.out.printf("取出的数据:%d\n",res);
                    } catch (Exception e) {
                        //TODO:handle exception
                        System.out.println(e.getMessage());
                    }
                    break;
                case 'h':
                    try {
                        int res=queue.headQueue();
                        System.out.printf("队头的数据:%d\n",res);
                    } catch (Exception e) {
                        //TODO:handle exception
                        System.out.println(e.getMessage());
                    }
                    break;

                case 'e':
                    scanner.close();
                    loop=false;
                    break;

                default:
                    break;
            }

        }
    }
}
class CircleArray{
    private int maxSize;//表示数组的最大容量
    private int front;//指向队列的第一个元素
    private int rear;//指向队列最后一个元素的后一个位置
    private int[] arr;//存放数据

    public CircleArray(int arrMaxSize){
        maxSize=arrMaxSize;
        arr=new int[maxSize];
    }

    //判断队列是否满
    public boolean isFull(){
        return (rear+1)%maxSize==front;
    }

    //判断队列是否为空
    public boolean isEmpty(){
        return rear==front;
    }

    //添加数据到队列
    public void addQueue(int n){
        //判断队列是否满
        if (isFull()) {
            System.out.println("队列已满,不能加入数据");
            return;
        }
        //直接将数据加入
        arr[rear]=n;
        //将rear后移,考虑取模
        rear=(rear+1)%maxSize;
    }

    //获取队列的数据
    public int getQueue(){
        //判断队列是否为空
        if (isEmpty()) {
            //抛出异常
            throw new RuntimeException("队列空,不能取数据");
        }
        //front指向队列的第一个元素
        //1、先把front对应的值保留到一个临时变量
        //2、将front后移,考虑取模
        //3、将临时保存的变量返回
        int value=arr[front];
        front=(front+1)%maxSize;
        return value;
    }

    //显示队列的所有数据
    public void showQueue(){
        //遍历
        if (isEmpty()) {
            System.out.println("队列空的,没有数据");
            return;
        }

        //从front开始遍历
        for(int i=front;i<front+size();i++){
            System.out.printf("arr[%d]=%d\n",i,arr[i]);
        }
    }

    //求出当前队列有效数据的个数
    public int size(){
        return (rear+maxSize-front)%maxSize;
    }

    //显示队列的头数据
    public int headQueue(){
        if (isEmpty()) {
            throw new RuntimeException("队列空的,没有数据");
        }
        return arr[front];
    }

}
//"C:\Program Files\Java\jdk-19\bin\java.exe" "-javaagent:D:\IntelliJ IDEA 2022.2.3\lib\idea_rt.jar=56804:D:\IntelliJ IDEA 2022.2.3\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath D:\java-idea-2022.10.26\DataStructure\out\production\DataStructure com.atguigu.sparse.queue.CircleArrayQueueDemo
//测试数组模拟环形队列的案例
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//s
//队列空的,没有数据
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//a
//输出一个数:
//10
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//a
//输出一个数:
//20
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//a
//输出一个数:
//30
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//a
//输出一个数:
//40
//队列已满,不能加入数据
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//s
//arr[0]=10
//arr[1]=20
//arr[2]=30
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//g
//取出的数据:10
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//g
//取出的数据:20
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//a
//输出一个数:
//10
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据
//s
//arr[2]=30
//arr[3]=10
//s(show): 显示队列
//e(exit): 退出队列
//a(add): 添加数据到队列
//g(get): 从队列中取出数据
//h(head): 查看队列头的数据

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/172432.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【Javascript】文本转语音SpeechSynthesisUtterance

SpeechSynthesisUtterance基本介绍 SpeechSynthesisUtterance是HTML5中新增的API,用于将指定文字合成为对应的语音.也包含一些配置项,指定如何去阅读(语言,音量,音调)等 SpeechSynthesisUtterance基本属性 SpeechSynthesisUtterance.lang 获取并设置话语的语言 SpeechSynthesis…

InfluxDB 笔记

概念 Measurement 类似于表名。 A measurement acts as a container for tags, fields, and timestamps. Tag 补充描述数据的信息&#xff0c;如示例中的location和scientist描述了该数据的采集地和采集人。这两个称为Tag Key&#xff0c;具体的值则称为Tag Value&#xff0c…

小程序基础篇-视图与逻辑

本次学习目标&#xff1a;实现页面间的导航跳转实现下拉刷新实现上拉加载更多知道小程序常用的生命周期函数1.页面导航页面导航指的是页面之前相互的跳转浏览器之间的页面导航有两种&#xff1a;<a>;location.href小程序之间的页面导航有两种&#xff1a;声明式导航&…

告警与恢复告警原理及实现

一、 背景自“双碳”政策提出以来&#xff0c;KaiwuDB 聚焦“数字能源”领域&#xff0c;为用户打造数字能源管理平台&#xff0c;旨在提升综合能源和碳资产管理能力。数字能源管理平台是以 KaiwuDB 为核心建设的云-边-端一体化数据服务平台&#xff0c;致力于为 IoT、工业互联…

前言技术--swagger

目录一、前后端分离的特点二、在没有swagger之前三、swagger的作用四、swagger的优点五、集成swagger5.1 新建springboot项目5.2 集成swagger5.3 开发一个controller用于测试5.4 启动服务&#xff0c;验证集成效果六、swagger常用注解七、swagger使用综合案例一、前后端分离的特…

Python的PyQt框架的使用-常用控件篇

Python的PyQt框架的使用-常用控件篇一、前言二 、QLineEdit 文本框三 、QPushButton按钮控件四、QRadioButton 单选按钮一、前言 个人主页: ζ小菜鸡大家好我是ζ小菜鸡&#xff0c;小伙伴们&#xff0c;让我们一起来学习Python的PyQt框架的常用控件。如果文章对你有帮助、欢迎…

第一个程序——构建一个ServerUI

简介 本次程序设计均使用python实现&#xff0c;使用sql server对聊天室用户的数据进行存储。通过python socket套接字编程&#xff0c;实现了在线聊天室的功能&#xff0c;并使用python tkinter进行UI界面的设计。 思路 由计算机网络的基础知识易知&#xff0c;两个主机之间…

基于LSTMGRU的微博突发事件分析与谣言检测(附完整的代码+报告)

问题描述及方法基础 本章主要对课题研究所涉及的机器学习、自然语言处理的原理和方法进行介绍,主要分为四部分,第一部分是将本课谣言检测任务的符号化描述;第二部分是微博数据的预处理,包括语言模型、文本分词等技术;第三部分与第四部分分别是本文搭建的微博谣言检测模型所…

py字符串的格式化笔记

print():和cjava差不多&#xff0c;只是逗号变了&#xff0c;其中 %s 就是模板中的占位符&#xff0c;表示这个位置先占着&#xff0c;待会儿要有数据填入到这里。然后再提供一个元组&#xff0c;里面依次存放需要填入到 %s 位置 的数据。这里是使用变量 (salary,tax,aftertax)…

CSS.前端基础.html

什么是 CSS? CSS 指层叠样式表 (Cascading Style Sheets)样式定义如何显示 HTML 元素样式通常存储在样式表中把样式添加到 HTML 4.0 中&#xff0c;是为了解决内容与表现分离的问题外部样式表可以极大提高工作效率外部样式表通常存储在 CSS 文件中多个样式定义可层叠为一个示…

丝绸之路也可以是科技传播之路

唐宋元海外贸易 618年-1368年 王孝通 生卒年代不详 孙思邈541年—682年 一行 公元683年-公元727年 李淳风 602年&#xff0d;670年 沈括 1031年&#xff0d;1095年 郭守敬 1231年&#xff0d;1316年 扎马鲁丁生卒年代不详 阿拉伯帝国 632年-1258年 阿尔花拉子模 780年&#xf…

【深度强化学习】【论文阅读】【双臂模仿】Deep Imitation Learning for BimanualRobotic Manipulation

title: Deep Imitation Learning for BimanualRobotic Manipulation date: 2023-01-15T20:54:56Z lastmod: 2023-01-19T18:31:57Z Deep Imitation Learning for BimanualRobotic Manipulation 1 Introduction 文中使用的模型是一个深度的、分层的、模块化的架构。与 baselin…

微服务负载均衡器Ribbon学习笔记

目录 1.什么是Ribbon 1.1 客户端的负载均衡 1.2 服务端的负载均衡 1.3 常见负载均衡算法 2. Nacos使用Ribbon 3. Ribbon负载均衡策略 4.修改默认负载均衡策略 方式1&#xff1a;通过自定义配置类来实现 方式2&#xff1a;通过修改配置文件实现&#xff08;推荐&#xf…

9、jQuery

jQuery库&#xff1a;里面存在大量的JavaScript函数 官网&#xff1a;https://jquery.com/ 9.1 获取jQuery jQuery引入 cdn 引入 <script src"https://cdn.bootcss.com/jquery/3.4.1/core.js"></script>本地引入 <script src"lib/jquery-3.6.3.…

C语言练习——3

C语言练习——3一、 操作符练习1.1交换两个变量&#xff08;不创建临时变量&#xff09;1.2 打印整数二进制的奇数位和偶数位1.3[二进制中1的个数](https://www.nowcoder.com/questionTerminal/8ee967e43c2c4ec193b040ea7fbb10b8)1.4[两个整数二进制位不同个数](https://www.no…

【 java 反射下篇】java反射机制不难吧?来看看这篇

&#x1f4cb; 个人简介 &#x1f496; 作者简介&#xff1a;大家好&#xff0c;我是阿牛&#xff0c;全栈领域优质创作者。&#x1f61c;&#x1f4dd; 个人主页&#xff1a;馆主阿牛&#x1f525;&#x1f389; 支持我&#xff1a;点赞&#x1f44d;收藏⭐️留言&#x1f4d…

Element Plus 跟踪表格数据总数,包括查询、筛选等操作

前言 Element Plus的表格组件提供了筛选功能 前端项目中&#xff0c;如果表格使用的是后端分页&#xff0c;使用表格插件及分页器插件就可以了。这种情况下&#xff0c;前端的表格筛选被后端的分页条件查询取代了 另一种情况&#xff1a;不分页&#xff0c;直接查询所有数据…

Win7快速部署weblogic 12c

0x00 前言 需要一个漏洞中等数量的版本。 0x01 安装环境 版本操作系统Windows 7 64bitJDKjdk-8u101-windows-x64weblogic12.2.1.3 0x02 下载地址 JDK 下载地址 https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html jdk 1.8版本&#xff0c;文…

华为机试题:HJ16 购物单(python)

文章目录知识点详解1、input()&#xff1a;获取控制台&#xff08;任意形式&#xff09;的输入。输出均为字符串类型。2、print() &#xff1a;打印输出。3、strip()&#xff1a;删除字符串&#xff08;开头 / 结尾&#xff09;指定字符&#xff08;默认空格&#xff09;或字符…

两小时上手ActiveMQ

一、消息中间件概述 1.1 消息中间件产生的背景 在客户端与服务器进行通讯时.客户端调用后&#xff0c;必须等待服务对象完成处理返回结果才能继续执行。 客户与服务器对象的生命周期紧密耦合,客户进程和服务对象进程都都必须正常运行;如果由于服务对象崩溃或者网络故障导致用…