1 //第一新建一个TeacherMapper接口 2 public interface TeacherMapper { 3 //使用map修改 4 int updateTeacherMap(Map<String,Object> map); 5 //使用map插入 6 int addTeacherM ...
分类:
其他好文 时间:
2020-04-04 14:20:44
阅读次数:
81
1.几种常见的编码格式 1.为什么需要编码? (1)在计算机存储信息的最小单位是1个字节(byte),即8个bit,所以能表示的字符范围是0-255个。 (2)人类要表示的符号太多,无法用1个字节来完全表示。 要解决这个矛盾必须要有一个新的数据结构char,而从char到byte必须编码。 2.如何 ...
分类:
编程语言 时间:
2020-04-01 19:22:52
阅读次数:
74
读取导出jar包的相同目录的配置文件 System.getProperty("user.dir")+"\\"+fileName; 读取类所在目录的配置文件按 InputStreamis=TestAction.class.getClassLoader().getResourceAsStream("te ...
分类:
编程语言 时间:
2020-03-31 14:25:35
阅读次数:
68
@Slf4j@Controllerpublic class ExportPPTController { private static final String REQ_FILES = "files"; private static final String REQ_DATA = "data"; pr ...
分类:
其他好文 时间:
2020-03-30 19:34:59
阅读次数:
75
一、InputStream类中read方法 二、开源工具类IOUtils中toString方法 maven项目中pom.xml文件里引入依赖: 演示代码如下: 三、开源工具类CharStreams中toString方法 maven项目中pom.xml文件里引入依赖: 演示代码如下: ...
分类:
编程语言 时间:
2020-03-30 19:22:11
阅读次数:
88
由于公司要开发一个考试类型的项目用到了人脸比对,我就研究了一下相关了知识。 1.最开始想的是用微信小程序的媒体组件camera。 const ctx = wx.createCameraContext() ctx.takePhoto({ quality: 'high', success: (res) ...
分类:
微信 时间:
2020-03-30 16:29:32
阅读次数:
220
A. 水题 1 #include<bits/stdc++.h> 2 using namespace std; 3 char s[10]; 4 int main() 5 { 6 scanf("%s",s+1); 7 if(s[3]==s[4]&&s[5]==s[6])puts("Yes"); 8 el ...
分类:
其他好文 时间:
2020-03-30 09:25:08
阅读次数:
84
网上的很多例子都是不好用的 我这个是我验证过的,大家可以放心用啊 1 // 2 //适合于9999以下的数据转换 3 // 9999 -> 0x270F Max 4 // 5 unsigned int uHex2Bcd_SubFunction(uint16_t sbcd_data) 6 { 7 if ...
分类:
其他好文 时间:
2020-03-27 21:55:40
阅读次数:
73
C 库函数 void *memset(void *str, int c, size_t n) 复制字符 c(一个无符号字符) 到参数 str 所指向的字符串的前 n 个字符。 声明下面是 memset() 函数的声明。 void *memset(void *str, int c, size_t n) ...
分类:
编程语言 时间:
2020-03-26 01:05:48
阅读次数:
88
B. Princesses and Princes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output The King of Be ...
分类:
其他好文 时间:
2020-03-25 21:30:30
阅读次数:
104