package LeetCode_1365 import java.util.* /** * 1365. How Many Numbers Are Smaller Than the Current Number * https://leetcode.com/problems/how-many-num ...
分类:
其他好文 时间:
2020-06-04 19:56:56
阅读次数:
67
今天使用 qt 的写入文件,发现中文乱码,经过一番查找,解决问题。 QTextStream txt(&file); txt.setCodec(QTextCodec::codecForName("utf-8")); txt << QString::fromStdString(json.toFormat ...
分类:
其他好文 时间:
2020-06-04 19:52:37
阅读次数:
60
cube-ui官网:https://didi.github.io/cube-ui/#/zh-CN/docs/quick-start 要求:vue-cli >= 3 安装:vue add cube-ui 安装过程:有些选项需根据需要选择。 注:使用了amfe-flexible。页面使用px就会自动转为 ...
分类:
其他好文 时间:
2020-06-04 15:24:43
阅读次数:
92
Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of th ...
分类:
其他好文 时间:
2020-06-04 11:56:26
阅读次数:
48
一简介:MGR节点的增减 二 两种情况 1 MGR读节点异常停止,然后重新启动加入节点进行数据同步 2 MGR读节点新加入集群成员,启动复制进行数据同步 三 两种可行性方案 1 采用 clone克隆方式直接远程拉取复制 2 采用 xtrabackup 备份还原方式 三 clone过程 1 set g ...
分类:
其他好文 时间:
2020-06-04 10:48:07
阅读次数:
114
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Input: [0,1] Output: 2 Explanation: [0 ...
分类:
其他好文 时间:
2020-06-04 01:36:55
阅读次数:
59
(一)方法引用解释 方法引用通过方法的名字来指向一个方法。 方法引用可以使语言的构造更紧凑简洁,减少冗余代码。 方法引用使用一对冒号 :: (二)代码示例 1 Person类编写 package com.example.demo; import java.time.LocalDate; class ...
分类:
其他好文 时间:
2020-06-03 23:13:06
阅读次数:
66
PyQt框架简介 什么是Qt 1. 使用C++语言编写的跨平台GUI库,支持Windows,Mac OS和Linux. (1) 现在基本只要写的一个程序可以同时在这三个平台运行,就基本认为是跨平台了 2. 由于Qt使用C++编写,所以: (1) 使用Qt开发的GUI程序的界面风格与当前操作系统完全相 ...
分类:
其他好文 时间:
2020-06-03 18:47:26
阅读次数:
54
computed也就是计算属性,它可以帮助我们将在模板中的一些稍微复杂的逻辑计算放回到js代码中,方便理解与修改维护 官网中给出的例子:这里展示的数据是经过message和number两个属性经过变换合成的 <div id="example"> {{ message.split('').revers ...
分类:
其他好文 时间:
2020-06-03 13:32:14
阅读次数:
77
存储类定义 C 程序中变量/函数的范围(可见性)和生命周期。这些说明符放置在它们所修饰的类型之前。下面列出 C 程序中可用的存储类: auto register static extern auto 存储类 auto 存储类是所有局部变量默认的存储类。 { int mount; auto int m ...
分类:
其他好文 时间:
2020-06-03 11:56:15
阅读次数:
77