当前位置: 首页 > news >正文

Java流的体系结构(一)

文章目录

  • 一、文件读写操作FileReader和FileWriter
    • 1.main()
    • 2.FileReader
      • 1.说明:
      • 2.代码案例
    • 3.对read()操作升级:使用read的重载方法
    • 4.FileWriter的使用
      • 1.说明
      • 2.代码
    • 4.FileReader和FileWriter综合使用
  • 二、使用步骤
    • 1.引入库
  • 二、测试FileInputStream和FileOutputStream的使用
    • 1.结论
    • 2.使用字节流FileInputStream处理文本文件,可能出现乱码
    • 3.实现对图片的复制操作
    • 3.指定路径下的文件的复制
  • 三、处理流之一:缓冲流的使用
    • 1.缓冲流
    • 2.作用
    • 3.处理流,就是“套接”在已有的流的基础上
    • 4.实现非文本文件的复制BufferedInputStream和BufferedOutputStream
    • 5.实现文件复制的方法BufferedInputStream和BufferedOutputStream
    • 6.使用BufferedReader和BufferedWriter实现文本文件的复制
  • 四、处理流之二:转换流的使用
    • 1.概念:
    • 2.作用
    • 3.InputStreamReader
    • 4.InputStreamReader和OutputStreamWriter
  • 五、流的分类以及流的体系结构
  • 六、输入、输出的标准化过程
    • 1.输入
    • 2.输出


提示:以下是本篇文章正文内容,下面案例可供参考

一、文件读写操作FileReader和FileWriter

1.main()

public static void main(String[] args) {File file = new File("hello.txt");  //相较于当前工程System.out.println(file.getAbsolutePath());File file1 = new File("day04\\hello.txt");System.out.println(file.getAbsolutePath());}

2.FileReader

1.说明:

1.将hello.txt文件内容读入到程序中,并输出到控制台4
2…read()的处理,返回读入的一个字符,如果达到文件末尾,返回-1
3.异常的处理:为了保证流资源一定可以执行关闭操作,需要使用try-catch-finally处理
4.读入的文件一定要存在,否则就会报FileNotFoundException.

2.代码案例

public void testFileReader()  {FileReader fr = null;try{//1.实例化File类的对象,指明要操作的文件File file = new File("hello.txt"); //相较于当前Module//System.out.println(file.getAbsolutePath());//2.提供具体的流fr = new FileReader(file);//3.数据的读入//read():返回读入的一个字符。如果到达文件末尾,返回-1.
//        方式一:
//        int data = fr.read();
//        while(data != -1){
//            System.out.print((char)data);
//            data = fr.read();
//        }//方式二: 语法上针对于方式一的修改int data;while((data = fr.read())!=-1){System.out.println((char)data);}}catch(IOException e){e.printStackTrace();}finally {//4.流的关闭操作try{if(fr!=null)fr.close();}catch(IOException e){e.printStackTrace();}}}

3.对read()操作升级:使用read的重载方法

public void testFileReader1() {FileReader fr = null;try{//1.File类的实例化File file = new File("hello.txt");//2.FileReader流的实例化fr = new FileReader(file);//3.读入的操作//read(char[] cbuf) :返回每次读入到cbuf数组中的字符的个数。//如果达到文件末尾,返回-1。char[] cbuf = new char[5];int len;while((len = fr.read(cbuf))!=-1){//错误的写法
//               for(int i = 0;i < cbuf.length;i++){
//                   System.out.print(cbuf[i]);
//               }//方式一:
//               for (int i = 0; i < len; i++) {
//                   System.out.print(cbuf[i]);
//
//               }//方式二:错误!
//               String str = new String(cbuf);
//               System.out.println(str);//正确String str = new String(cbuf,0,len);System.out.print(str);}}catch(IOException e){e.printStackTrace();}finally {//4.流的关闭操作try{if(fr!=null)fr.close();}catch(IOException e){e.printStackTrace();}}}

4.FileWriter的使用

1.说明

1.从内存中写出数据到硬盘的文件里。
2.输出操作,对应的File可以不存在的,并不会报异常
3.File对应的硬盘中的文件如果不存在,在输出的过程中,会自动创建此文件
4.File对应的硬盘中的文件如果存在,
//如果流使用的构造器是: FileWriter(file,false)/(FileWriter(file)):对原有文件的覆盖
//如果流使用的构造器是:FileWriter(file,true):不会对原有文件覆盖,而是追加。

2.代码

public void testFileWriter()  {FileWriter fw = null;try{//1.提供File类的对象,指明写出到的文件File file = new File("hello1.txt");//2.提供FileWriter的对象,用于数据的写出fw = new FileWriter(file,true);//3.写出的操作fw.write("I have a dream!\n");fw.write("you need to have a dream!");}catch(IOException e){e.printStackTrace();}finally {//4.流的关闭操作try{if(fw!=null)fw.close();}catch(IOException e){e.printStackTrace();}}}

4.FileReader和FileWriter综合使用

public void testFileReaderFileWriter(){FileReader fr = null;FileWriter fw = null;try{//1.创建File类的对象,指明读入和写出的文件File srcFile = new File("hello.txt");File destFile = new File("hello2.txt");//不能使用字符流来处理图片等字节数据
//            File srcFile = new File("111.jpg");
//            File destFile = new File("2.jpg");//2.创建输入流和输出流的对象fr = new FileReader(srcFile);fw = new FileWriter(destFile);//3.数据的读入和写出操作char[] cbuf = new char[5];int len;//记录每次读入到cbuf数组中的字符的个数while((len = fr.read(cbuf))!= -1){//每次写出len个字符fw.write(cbuf,0,len);}}catch (IOException e){e.printStackTrace();}finally {//4.关闭数据流try{if(fw!=null)fw.close();}catch (IOException e){e.printStackTrace();}finally {try{if(fr!=null)fr.close();}catch(IOException e){e.printStackTrace();}}}}

二、使用步骤

1.引入库

代码如下(示例):

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
warnings.filterwarnings('ignore')
import  ssl
ssl._create_default_https_context = ssl._create_unverified_context

二、测试FileInputStream和FileOutputStream的使用

1.结论

1.对于文本文件(.txt,.java,.c,.cpp),使用字符流处理
2.对于非文本文件(.jpg,.mp3,.mp4,.avi.doc,.ppt,…),使用字节流处理

2.使用字节流FileInputStream处理文本文件,可能出现乱码

public void testFileInputStream(){FileInputStream fis = null;try{//1.造文件File file = new File("hello.txt");//2.造流fis = new FileInputStream(file);//3.读数据byte[] buffer = new byte[5];int len; //记录每次读取的字节的个数while((len = fis.read(buffer)) != -1){String str = new String(buffer,0,len);System.out.println(str);}}catch(IOException e){e.printStackTrace();}finally {try{if(fis != null){fis.close();}}catch(IOException e){e.printStackTrace();}}}

3.实现对图片的复制操作

public void testFileInputOutputStream(){FileInputStream fis = null;FileOutputStream fos = null;try{File srcFile = new File("111.jpg");File destFile = new File("2.jpg");fis = new FileInputStream(srcFile);fos = new FileOutputStream(destFile);//复制的过程byte[] buffer = new byte[5];int len;while((len = fis.read(buffer))!= -1){fos.write(buffer,0,len);}}catch (IOException e){e.printStackTrace();}finally {if(fos != null){try{fos.close();}catch(IOException e){e.printStackTrace();}}}}

3.指定路径下的文件的复制

public void copyFile(String srcPath,String destPath){FileInputStream fis = null;FileOutputStream fos = null;try{File srcFile = new File(srcPath);File destFile = new File(destPath);fis = new FileInputStream(srcFile);fos = new FileOutputStream(destFile);//复制的过程byte[] buffer = new byte[1024];int len;while((len = fis.read(buffer))!= -1){fos.write(buffer,0,len);}}catch (IOException e){e.printStackTrace();}finally {if(fos != null){try{fos.close();}catch(IOException e){e.printStackTrace();}}}}@Testpublic void testCopyFile(){long start = System.currentTimeMillis();String srcPath = "C:\\Users\\asus\\Desktop\\1.mp4";String destPath = "C:\\Users\\asus\\Desktop\\2.mp4";copyFile(srcPath,destPath);long end = System.currentTimeMillis();System.out.println("复制操作花费的时间为:"+(end-start));}

三、处理流之一:缓冲流的使用

1.缓冲流

BufferedInputStream
BufferedOutputStream
BufferedReader
BufferedWriter

2.作用

提供流的读取、写入的速度
提高读写速度的原因,内部提供了一个缓冲区

3.处理流,就是“套接”在已有的流的基础上

4.实现非文本文件的复制BufferedInputStream和BufferedOutputStream

public void BufferedStreamTest(){BufferedInputStream bis = null;BufferedOutputStream bos = null;try{//1.造文件File srcFile = new File("111.jpg");File destFile = new File("222.jpg");//2.造流//2.1  造节点流FileInputStream fis = new FileInputStream(srcFile);FileOutputStream fos = new FileOutputStream(destFile);//2.2造缓冲流bis  = new BufferedInputStream(fis);bos = new BufferedOutputStream(fos);//3.复制的细节:读取、写入byte[] buffer = new byte[10];int len;while((len = bis.read(buffer))!=-1){bos.write(buffer,0,len);}}catch (IOException e){e.printStackTrace();}finally {//4.资源关闭//要求:先关闭外层的流,再关闭内层的流//说明:关闭外层流的同时,内层流也会自动的进行关闭。//关于内层流的关闭,我们可以省略if(bos!= null){try{bos.close();}catch (IOException e){e.printStackTrace();}}if(bis!=null){try{bis.close();}catch(IOException e){e.printStackTrace();}}}}

5.实现文件复制的方法BufferedInputStream和BufferedOutputStream

public void copyFileWithBufferd(String srcPath,String destPath){BufferedInputStream bis = null;BufferedOutputStream bos = null;try{//1.造文件File srcFile = new File(srcPath);File destFile = new File(destPath);//2.造流//2.1  造节点流FileInputStream fis = new FileInputStream(srcFile);FileOutputStream fos = new FileOutputStream(destFile);//2.2造缓冲流bis  = new BufferedInputStream(fis);bos = new BufferedOutputStream(fos);//3.复制的细节:读取、写入byte[] buffer = new byte[1024];int len;while((len = bis.read(buffer))!=-1){bos.write(buffer,0,len);//                bos.flush();//刷新缓冲流}}catch (IOException e){e.printStackTrace();}finally {//4.资源关闭//要求:先关闭外层的流,再关闭内层的流//说明:关闭外层流的同时,内层流也会自动的进行关闭。//关于内层流的关闭,我们可以省略if(bos!= null){try{bos.close();}catch (IOException e){e.printStackTrace();}}if(bis!=null){try{bis.close();}catch(IOException e){e.printStackTrace();}}}}
public void testCopyFileWithBuffered(){long start = System.currentTimeMillis();String srcPath = "C:\\Users\\asus\\Desktop\\1.mp4";String destPath = "C:\\Users\\asus\\Desktop\\3.mp4";copyFileWithBufferd(srcPath,destPath);long end = System.currentTimeMillis();System.out.println("复制操作花费的时间为:"+(end-start));}

6.使用BufferedReader和BufferedWriter实现文本文件的复制

public void testBufferedReaderBufferedWriter(){BufferedReader br = null;BufferedWriter bw = null;try{//1.创建文件和相应的流br = new BufferedReader(new FileReader(new File("hello.txt")));bw = new BufferedWriter(new FileWriter(new File("hello3.txt")));//2.读写操作//方式一:
//           char[] cbuf = new char[1024];
//           int len;
//           while((len = br.read(cbuf))!=-1){
//               bw.write(cbuf,0,len);
            bw.flush();
//           }//方式二:String data;while((data = br.readLine())!=null){//方法一:
//               bw.write(data+"\n");  //data不包含换行符//方法二:bw.write(data);bw.newLine();  //提供换行的操作}}catch(IOException e){e.printStackTrace();}finally {//3.关闭资源try{if(bw!=null)bw.close();}catch (IOException e){e.printStackTrace();}try{if(br!=null)br.close();}catch (IOException e){e.printStackTrace();}}}

四、处理流之二:转换流的使用

1.概念:

转换流:属于字符流
InputstreamReader: 将一个字节的输入流转换为字符的输入流Outputstreamwriter: 将一个字符的输出流转换为字节的输出流

2.作用

提供字节流与字符流之间的转换

3.InputStreamReader

//此时处理异常的话,仍然应该使用try-catch-finally//InputStreamReader的使用,实现字节的输入流到字符的输入流的转换@Testpublic void test1() throws IOException {FileInputStream fis = new FileInputStream("hello.txt");
//        InputStreamReader isr = new InputStreamReader(fis);//使用系统默认的字符集//参数2指明了字符集,具体使用哪个字符集,取决于文件hello.txt保存时使用的字符集InputStreamReader isr = new InputStreamReader(fis,"UTF-8");char [] cbuf = new char[20];int len;while((len = isr.read(cbuf))!=-1){String str = new String(cbuf,0,len);System.out.print(str);}isr.close();}

4.InputStreamReader和OutputStreamWriter

 //此时处理异常的话,仍然应该使用try-catch-finally//综合使用InputStreamReader和OutputStreamWriter@Testpublic void test2() throws IOException {//1.造文件  造流File file1 = new File("hello.txt");File file2 = new File("hello_gbk.txt");FileInputStream fis = new FileInputStream(file1);FileOutputStream fos = new FileOutputStream(file2);InputStreamReader isr = new InputStreamReader(fis,"utf-8");OutputStreamWriter osw = new OutputStreamWriter(fos,"gbk");//读写过程char [] cbuf = new char[20];int len;while((len = isr.read(cbuf))!=-1){osw.write(cbuf,0,len);}//3.关闭资源isr.close();osw.close();}

五、流的分类以及流的体系结构

在这里插入图片描述

六、输入、输出的标准化过程

1.输入

在这里插入图片描述

2.输出

在这里插入图片描述


相关文章:

Java流的体系结构(一)

文章目录 一、文件读写操作FileReader和FileWriter1.main()2.FileReader1.说明&#xff1a;2.代码案例 3.对read()操作升级&#xff1a;使用read的重载方法4.FileWriter的使用1.说明2.代码 4.FileReader和FileWriter综合使用 二、使用步骤1.引入库 二、测试FileInputStream和Fi…...

什么是Redux?它的核心概念有哪些?

聚沙成塔每天进步一点点 ⭐ 专栏简介⭐ 什么是Redux&#xff1f;⭐ 它的核心概念有哪些&#xff1f;⭐ 写在最后 ⭐ 专栏简介 前端入门之旅&#xff1a;探索Web开发的奇妙世界 欢迎来到前端入门之旅&#xff01;感兴趣的可以订阅本专栏哦&#xff01;这个专栏是为那些对Web开发…...

细胞机器人系统中的群体智能

摘要 细胞机器人系统具有“智能”行为能力。本文分析了这种智能的含义。本文根据上述不可思议智能行为的不可预测性来定义机器人智能和机器人系统智能。对不可预测性概念的分析与&#xff08;1&#xff09;统计不可预测、&#xff08;2&#xff09;不可访问、&#xff08;3&am…...

【办公自动化】用Python将PDF文件转存为图片(文末送书)

&#x1f935;‍♂️ 个人主页&#xff1a;艾派森的个人主页 ✍&#x1f3fb;作者简介&#xff1a;Python学习者 &#x1f40b; 希望大家多多支持&#xff0c;我们一起进步&#xff01;&#x1f604; 如果文章对你有帮助的话&#xff0c; 欢迎评论 &#x1f4ac;点赞&#x1f4…...

不容易解的题9.26

想编写这一版&#xff0c;是因为之前复习字符串或者双指针等其他栏目时候没有写文章&#xff0c;但是现在回过头来刷&#xff0c;所以想着写一篇&#xff0c;我在leetcode的收藏夹里收藏了一些我自认为需要多加练习的题目&#xff0c;它们并非是很难的&#xff0c;极不易理解的…...

易点易动固定资产管理系统:精准管理与科学采购,降本增效的利器

在现代企业管理中&#xff0c;固定资产的精准管理和科学采购已成为提升企业效率和降低成本的重要环节。为了满足企业管理的需求&#xff0c;我们自豪地介绍易点易动固定资产管理系统&#xff0c;这是一款功能强大的软件解决方案&#xff0c;旨在帮助企业实现固定资产的精准管理…...

人大金仓分析型数据库外部表(二)

外部表错误数据 默认情况下&#xff0c;如果外部表数据中包含有一个错误&#xff0c;命令就会失败并且不会有数据被载入到目标数据库表中。gpfdist 文件服务器使用 HTTP 协议。使用 LIMIT的外部表查询会在检索到所需的 行后结束连接&#xff0c;导致一个HTTP 套接字错误。 如…...

rtp流广播吸顶喇叭网络有源吸顶喇叭

SIP-7043 rtp流广播吸顶喇叭网络有源吸顶喇叭 一、描述 SIP-7043是我司的一款SIP网络有源吸顶喇叭&#xff0c;具有10/100M以太网接口&#xff0c;内置有一个高品质扬声器&#xff0c;将网络音源通过自带的功放和喇叭输出播放&#xff0c;可达到功率20W。SIP-7043作为SIP系统的…...

Spring学习笔记12 面向切面编程AOP

Spring学习笔记11 GoF代理模式_biubiubiu0706的博客-CSDN博客 AOP(Aspect Oriented Programming):面向切面编程,面向方面编程. AOP是对OOP的补充延申.底层使用动态代理实现. Spring的AOP使用的动态代理是:JDK动态代理_CGLIB动态代理技术.Spring在这两种动态代理中灵活切换.如…...

【0225】源码分析postgres磁盘块(disk block)定义

相关阅读: 【0040】 PostgreSQL数据库表文件底层结构布局分析 1. postgres磁盘块定义 在学习本文之前,需要对关系表的结构原理有一定的理解。如果不清楚PG磁盘数据表文件的布局,可阅读:...

第九章 动态规划 part11 123. 买卖股票的最佳时机III 188. 买卖股票的最佳时机IV

第五十天| 第九章 动态规划 part11 123. 买卖股票的最佳时机III 188. 买卖股票的最佳时机IV 一、123. 买卖股票的最佳时机III&#xff08;难难难难难&#xff09; 题目链接&#xff1a;https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-iii/ 题目介绍&#xff…...

阿里云服务器共享型和企业级独享有什么区别?

阿里云ECS云服务器共享型和企业级有什么区别&#xff1f;企业级就是独享型&#xff0c;共享型和企业级云的主要区别CPU调度模式&#xff0c;共享型是非绑定CPU调度模式&#xff0c;企业级是固定CPU调度模式&#xff0c;共享型云服务器在高负载时计算性能可能出现波动不稳定&…...

Vue.js基本语法上

&#x1f3ac; 艳艳耶✌️&#xff1a;个人主页 &#x1f525; 个人专栏 &#xff1a;《Spring与Mybatis集成整合》《springMvc使用》 ⛺️ 生活的理想&#xff0c;为了不断更新自己 ! 目录 1.插值 1.1 文本 1.2 v-v-html 1.3 数据双向绑定数据(v-model) 1.4 属性&#xff…...

【1333. 餐厅过滤器】

来源&#xff1a;力扣&#xff08;LeetCode&#xff09; 描述&#xff1a; 给你一个餐馆信息数组 restaurants&#xff0c;其中 restaurants[i] [idi, ratingi, veganFriendlyi, pricei, distancei]。你必须使用以下三个过滤器来过滤这些餐馆信息。 其中素食者友好过滤器 v…...

wifi7有关的210个提案

[1] TGbe, “Compendium of motions related to the contents of the TGbe specification framework document,” 19/1755r8, September 2020. [2] Bin Tian (Qualcomm), “Discussion on 11be PHY capabilities,” 20/0975r0, July 2020. [3] TGbe, “Compendiu…...

200行C++代码写一个Qt俄罗斯方块小游戏

小小演示一下&#xff1a; 大体思路&#xff1a; 其实很早就想写一个俄罗斯方块了&#xff0c;但是一想到那么多方块还要变形&#xff0c;还要判断落地什么的就脑壳疼。直到现在才写出来。 俄罗斯方块这个小游戏的小难点其实就一个&#xff0c;就是方块的变形&#xff0c;看似…...

蓝桥杯每日一题20223.9.26

4407. 扫雷 - AcWing题库 题目描述 分析 此题目使用map等都会超时&#xff0c;所以我们可以巧妙的使用哈希模拟散列表&#xff0c;哈希表初始化为-1首先将地雷读入哈希表&#xff0c;找到地雷的坐标在哈希表中对应的下标&#xff0c;如果没有则此地雷的位置第一次出现&#…...

查看基站后台信息

查看基站后台信息 电脑配置固定ip: 192.168.1.99: 打开“网络和共享中心”&#xff0c;选择更改适配器设置&#xff1a; 右键“本地连接”&#xff0c;选择属性 基站网线直连电脑网口 Telnet 登录基站 打开dos窗口 windows键R”&#xff0c;输入cmd&#xff0c;点确定&…...

关于坐标的旋转变换和坐标系的旋转变换

不管是坐标的旋转变换还是坐标系下的旋转变换&#xff0c;只和旋转的顺时针和逆时针有关。然坐标系间的顺时针和逆时针是根据当前坐标系在目标坐标系下的相对位置确定。 一。逆时针旋转belta角度的公式 二。顺时针旋转belta角度的公式 三。坐标的旋转变换 1.坐标的旋转变换相…...

2023.9.19 关于 数据链路层 和 DNS 协议 基本知识

目录 数据链路层 MTU DNS 协议 补充 DHCP协议 数据链路层 基本概念&#xff1a; 考虑相邻两个节点之间的传输&#xff08;通过 网线 / 光纤 / 无线 直接相连的两个设备&#xff09;以太网协议 规定了 数据链路层 和 物理层 的内容 IP地址 与 mac地址 的相互配合 IP地址 描…...

国防科技大学计算机基础课程笔记02信息编码

1.机内码和国标码 国标码就是我们非常熟悉的这个GB2312,但是因为都是16进制&#xff0c;因此这个了16进制的数据既可以翻译成为这个机器码&#xff0c;也可以翻译成为这个国标码&#xff0c;所以这个时候很容易会出现这个歧义的情况&#xff1b; 因此&#xff0c;我们的这个国…...

大话软工笔记—需求分析概述

需求分析&#xff0c;就是要对需求调研收集到的资料信息逐个地进行拆分、研究&#xff0c;从大量的不确定“需求”中确定出哪些需求最终要转换为确定的“功能需求”。 需求分析的作用非常重要&#xff0c;后续设计的依据主要来自于需求分析的成果&#xff0c;包括: 项目的目的…...

C++:std::is_convertible

C++标志库中提供is_convertible,可以测试一种类型是否可以转换为另一只类型: template <class From, class To> struct is_convertible; 使用举例: #include <iostream> #include <string>using namespace std;struct A { }; struct B : A { };int main…...

【算法训练营Day07】字符串part1

文章目录 反转字符串反转字符串II替换数字 反转字符串 题目链接&#xff1a;344. 反转字符串 双指针法&#xff0c;两个指针的元素直接调转即可 class Solution {public void reverseString(char[] s) {int head 0;int end s.length - 1;while(head < end) {char temp …...

如何将联系人从 iPhone 转移到 Android

从 iPhone 换到 Android 手机时&#xff0c;你可能需要保留重要的数据&#xff0c;例如通讯录。好在&#xff0c;将通讯录从 iPhone 转移到 Android 手机非常简单&#xff0c;你可以从本文中学习 6 种可靠的方法&#xff0c;确保随时保持连接&#xff0c;不错过任何信息。 第 1…...

《基于Apache Flink的流处理》笔记

思维导图 1-3 章 4-7章 8-11 章 参考资料 源码&#xff1a; https://github.com/streaming-with-flink 博客 https://flink.apache.org/bloghttps://www.ververica.com/blog 聚会及会议 https://flink-forward.orghttps://www.meetup.com/topics/apache-flink https://n…...

大语言模型(LLM)中的KV缓存压缩与动态稀疏注意力机制设计

随着大语言模型&#xff08;LLM&#xff09;参数规模的增长&#xff0c;推理阶段的内存占用和计算复杂度成为核心挑战。传统注意力机制的计算复杂度随序列长度呈二次方增长&#xff0c;而KV缓存的内存消耗可能高达数十GB&#xff08;例如Llama2-7B处理100K token时需50GB内存&a…...

安卓基础(aar)

重新设置java21的环境&#xff0c;临时设置 $env:JAVA_HOME "D:\Android Studio\jbr" 查看当前环境变量 JAVA_HOME 的值 echo $env:JAVA_HOME 构建ARR文件 ./gradlew :private-lib:assembleRelease 目录是这样的&#xff1a; MyApp/ ├── app/ …...

uniapp 开发ios, xcode 提交app store connect 和 testflight内测

uniapp 中配置 配置manifest 文档&#xff1a;manifest.json 应用配置 | uni-app官网 hbuilderx中本地打包 下载IOS最新SDK 开发环境 | uni小程序SDK hbulderx 版本号&#xff1a;4.66 对应的sdk版本 4.66 两者必须一致 本地打包的资源导入到SDK 导入资源 | uni小程序SDK …...

自然语言处理——文本分类

文本分类 传统机器学习方法文本表示向量空间模型 特征选择文档频率互信息信息增益&#xff08;IG&#xff09; 分类器设计贝叶斯理论&#xff1a;线性判别函数 文本分类性能评估P-R曲线ROC曲线 将文本文档或句子分类为预定义的类或类别&#xff0c; 有单标签多类别文本分类和多…...