KeyNotFoundException("Item was not found!"); NotImplementedException("Empty list."); ArgumentOutOfRangeException("index"); ArgumentNullException("elem ...
分类:
其他好文 时间:
2021-06-05 17:39:48
阅读次数:
0
SharedPreference是一种轻量级的内部数据存储方式,采用Key/value的形式,只运行存储一些简单的数据,比如int,float等类型 首先先创建SharedPreference package com.example.sharedpreference; import androidx ...
分类:
移动开发 时间:
2021-06-04 19:53:37
阅读次数:
0
Path '\react-native-safe-area-context\android\build\intermediates\compiled_local_resources\debug\out' is not a readable directory. 解决: 按照目录手动新建文件夹 ...
分类:
移动开发 时间:
2021-06-04 19:43:18
阅读次数:
0
思路:把每一个k阶看成一个3*3的网格,计算出点到每层(0,0)的距离,递归求出下一阶n-1的距离。 #include"stdio.h" #include"math.h" #include"string.h" #include"iostream" #include"algorithm" using ...
分类:
其他好文 时间:
2021-06-04 19:40:06
阅读次数:
0
Java 方法详解 一、何为方法? System.out.println():System是一个类,out是System下的一个输出对象,out就是一个方法 Java方法是语句的集合,它们在一起执行一个功能 方法是解决一类问题的步骤的有序组合 设计方法的原则: 方法的本意是功能块,就是实现某个功能的 ...
分类:
编程语言 时间:
2021-06-04 18:50:36
阅读次数:
0
1.返回上一页 this.$router.go(-1) 2.返回上一页的指定页面 this.$router.push({ path: '/dashboard' }) ...
分类:
其他好文 时间:
2021-06-04 18:46:52
阅读次数:
0
public class test{ public static void main(String[] arg){ //Date转为LocalDateTime DateTimeFormatter sdf1 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm ...
分类:
其他好文 时间:
2021-06-04 18:44:19
阅读次数:
0
注:该方法只能进行数值左侧补0,不能补充其他符号。 第一种: int youNumber = 1; // 0 代表前面补充0 // 3 代表长度为3 // d 代表参数为正数型 String str = String.format("%03d", youNumber); System.out.pri ...
分类:
编程语言 时间:
2021-06-03 18:16:15
阅读次数:
0
1、用偶判断,不用奇判断 System.out.println(-1%2==1?"奇数":"偶数"); 偶数 原因:java计算余数:a/b -> a-a/b*b 所以-1/2余数为-1,不等于1. 2、不要只替换一个类 常量类中的属性final修饰。其他类引用时,final常量会被直接将值写到类中 ...
分类:
编程语言 时间:
2021-06-02 20:57:55
阅读次数:
0
解析器主要就是解析出NALU,以及解析一些SPS、PPS等信息,下面分析一下ff_h264_parser AVCodecParser ff_h264_parser = { .codec_ids = { AV_CODEC_ID_H264 }, .priv_data_size = sizeof(H264 ...
分类:
其他好文 时间:
2021-06-02 20:50:21
阅读次数:
0