1、测试1 [root@centos7 test2]# ls a.txt [root@centos7 test2]# if [ -e a.txt ]; then echo "exist";else echo "no nxist"; fi exist [root@centos7 test2]# if ...
分类:
系统相关 时间:
2021-04-23 11:53:02
阅读次数:
0
① 编译器很聪明,会帮我们做些优化,比如: int a; a = 0; // 这句话可以优化掉,不影响 a 的结果 a = 1; ② 有时候编译器会自作聪明,比如: int *p = ioremap(xxxx, 4); // GPIO 寄存器的地址 *p = 0; // 点灯,但是这句话被优化掉了 ...
分类:
其他好文 时间:
2021-04-23 11:48:41
阅读次数:
0
1.可以把一段文字中的繁体字全部自动转化为简体字` $in="繁体繁體"; $in=iconv('UTF-8','BIG5//TRANSLIT',$in); $in=iconv('BIG5','GB2312//TRANSLIT',$in); $out=iconv('GB2312','UTF-8//T ...
分类:
其他好文 时间:
2021-04-22 16:34:19
阅读次数:
0
关系型数据库系统(RDBMS):是指使用了关系模型的数据库系统(MySQL、Oracle、DB2、SQL Server) NoSQL数据库:指的是数据分类存放,但是数据之间没有 关联关系的数据库系统(Redis、MongoDB、Neo4J、MemCache) MySQL数据库(使用Navicat工具 ...
分类:
数据库 时间:
2021-04-22 16:13:48
阅读次数:
0
方法1 select count(1) from sys.objects where name = 'student' 方法2 SELECT table_name FROM information_schema.TABLES WHERE table_name ='student' 程序员阿飞 202 ...
分类:
数据库 时间:
2021-04-22 16:12:38
阅读次数:
0
RabbitMQ主要实现消息推送和消费 用springboot实现消息推送 1. 新建springboot项目 通过idea,创建一个springboot默认项目,在pom.xml中添加如下依赖。 <dependency> <groupId>org.springframework.boot</gro ...
分类:
编程语言 时间:
2021-04-22 16:11:55
阅读次数:
0
1、read从键盘读入 [root@centos7 test]# echo $a [root@centos7 test]# read a 123456 [root@centos7 test]# echo $a 123456 2、-p 参数 加入提示 [root@centos7 test]# unse ...
分类:
系统相关 时间:
2021-04-22 15:41:37
阅读次数:
0
Given an m x n matrix, return all elements of the matrix in spiral order. Example 1: Input: matrix = [[1,2,3],[4,5,6],[7,8,9]] Output: [1,2,3,6,9,8,7, ...
分类:
其他好文 时间:
2021-04-22 15:34:12
阅读次数:
0
例: analysisReturnGoodsList --》集合 AnalysisReturnGoods--》集合中的自定义对象 getRefundAmount--》对象中的方法 int sum = analysisReturnGoodsList.stream().mapToInt(Analysis ...
分类:
其他好文 时间:
2021-04-22 15:21:10
阅读次数:
0
static void Main(string[] args) { var k = new Test() { ID = 1, Age = 15 }; T1 a = k; T2 b = k; a.show(); //Console.WriteLine(b.Age); b.show(); } } cla ...
分类:
其他好文 时间:
2021-04-22 15:19:53
阅读次数:
0