最精简版本 int check_data(int *array, int n) { while(n--) if (*array++ != 0x00) return 0; return 1; } 返回1 array数组全零,否则正常非全零。 int check_data(int *array) { w ...
分类:
编程语言 时间:
2021-04-01 13:15:24
阅读次数:
0
import EXIF from 'exif-js' // 处理移动端拍摄照片旋转的问题 dataURLtoFile (dataurl, filename) { /* eslint-disable */ var arr = dataurl.split(','), mime = arr[0].matc ...
分类:
移动开发 时间:
2021-04-01 13:15:06
阅读次数:
0
sql server环境测试: 几个特性: 1.sql server兼容性可以说是最差的。 举例: select x from y where id=1 字符串查询 select x from y where id='1' 这是会报错的,不允许的 select x from y where id=" ...
分类:
数据库 时间:
2021-04-01 13:09:51
阅读次数:
0
一、filter,map,flatmap练习: 1.读文本文件生成RDD lines lines = sc.textFile('file:///home/hadoop/word.txt') lines.collect() 2.将一行一行的文本分割成单词 words words=lines.flatM ...
分类:
其他好文 时间:
2021-04-01 13:07:18
阅读次数:
0
数据库:放数据的“仓库” 萌芽阶段 放在内存里——瞬时:程序结束,上次的数据就没啦 放在文件里——持久:进步了!能一直保存了(比如放在.txt文件里),但还是存在问题 不安全 不方便在中间插入、删除数据 但也不是一无是处,可以应用于配置文件:.xml文件、.ini文件等等 数据库的产生 核心:CRU ...
分类:
数据库 时间:
2021-04-01 13:06:58
阅读次数:
0
将多条记录的某个字段合并成一条记录 group_concat : 将某字段多条记录合并,默认逗号分隔 select group_concat(c.invoice_no) from ibc_comm_invoice c where c.settle_nos like concat('%',m.sett ...
分类:
数据库 时间:
2021-03-31 12:35:16
阅读次数:
0
export function formatInput(data: string) { console.log(data) var reg = /[^\d\.\,]/g; return data.replace(reg,'') // return data.replace(/^\,*^\D*(\d* ...
分类:
其他好文 时间:
2021-03-31 12:27:10
阅读次数:
0
#include <iostream> void print_arrs(const int *, int N); void sort_arrs(int *pInt, int N); constexpr int COUNT = 10; int search_data(const int *pInt, ...
分类:
其他好文 时间:
2021-03-31 12:20:32
阅读次数:
0
在上篇中介绍了Vue的相关定义和简单语法,本节继续来看Vue的模板语法、Data Property 和方法。 一、插值 数据绑定最常见的形式就是使用“Mustache”语法 (双大括号) 的文本插值: <span>Message: {{ msg }}</span> v-once:执行一次性地插值,当 ...
分类:
其他好文 时间:
2021-03-31 12:09:17
阅读次数:
0
在真实的开发中,我们经常会遇到需要对数据进行校验的业务,那么本篇文章对此进行总结。暂时总结三种方法,大家可以根据需要选择使用。 一、Java Bean Validation 验证 【校验处理】一、Java Bean Validation验证 二、SpringBoot Validate 统一处理 三、 ...
分类:
编程语言 时间:
2021-03-31 12:08:42
阅读次数:
0