一、准备工作 1.1 Java Apollo服务端:1.8+ Apollo客户端:1.7+ 由于Quick Start会在本地同时启动服务端和客户端,所以需要在本地安装Java 1.8+。 在配置好后,可以通过如下命令检查: java -version 样例输出: java version "1.8 ...
分类:
其他好文 时间:
2020-01-17 11:40:50
阅读次数:
586
C++中的queue 实现一种先进先出的数据结构,是一个模板类 头文件 #include<queue> queue<int> Q; //定义一个int型队列 Q.empty(); //返回队列是否为空 Q.size(); //返回当前队列长度 Q.front(); //返回当前队列的第一个元素 Q. ...
分类:
编程语言 时间:
2020-01-17 10:10:29
阅读次数:
361
原题链接在这里:https://leetcode.com/problems/shortest-way-to-form-string/ 题目: From any string, we can form a subsequence of that string by deleting some numb ...
分类:
其他好文 时间:
2020-01-17 10:01:32
阅读次数:
91
logging是python标准库中的模块,用于给程序添加日志,借此方便我们回溯程序的执行过程。 以下面代码为例,介绍logging模块的基本用法: import logging logging.basicConfig(filename="example.log", filemode="a", fo ...
分类:
编程语言 时间:
2020-01-17 00:03:23
阅读次数:
96
1.原始数据 Key value Transformations(example: ((1, 2), (3, 4), (3, 6))) 2. flatMap测试示例 执行结果: 3.distinct、reducebykey、groupbykey 4.combineByKey(create Combi ...
分类:
其他好文 时间:
2020-01-16 19:01:28
阅读次数:
97
* Mybatis - 通用分页拦截器<br/>* 项目地址 : http://git.oschina.net/free/Mybatis_PageHelper 一、分页total拷贝 PageInfo<TShopOrderEntity> selectByExample = new ArrayList ...
分类:
其他好文 时间:
2020-01-16 18:55:03
阅读次数:
153
# PC:Ubuntu18.04# GCC: arm-linux-gnueabihf- 7.4.0# 开发板:# imx6ull+debian10(文件系统为野火提供的) # 此处需要编译的是带gstreamer的qt 静态库,仅着重说明安装gstreamer的库,忽略其他工具的安装# 参考:太多, ...
分类:
其他好文 时间:
2020-01-16 17:19:26
阅读次数:
128
回文数。题意是判断一个数字是否是回文数。这个题跟第7题非常类似,几乎是一样的做法。例子, Example 1: Input: 121 Output: true Example 2: Input: -121 Output: false Explanation: From left to right, ...
分类:
其他好文 时间:
2020-01-16 14:55:14
阅读次数:
89
Given an integer n, return any array containing n unique integers such that they add up to 0. Example 1: Input: n = 5 Output: [-7,-1,1,3,4] Explanatio ...
分类:
其他好文 时间:
2020-01-16 14:19:16
阅读次数:
90
参考例子:https://blog.csdn.net/u014252478/article/details/80377103学习QT Socket编程。运行TcpServer时程序崩溃了,讨厌的Segmentation fault又出现了! 调用栈显示QLineEdit调用setText的位置,很可 ...
分类:
其他好文 时间:
2020-01-16 12:49:12
阅读次数:
247