编程笔记
-
表面张力和界面张力有什么区别?(转摘)
转摘自:https://mp.weixin.qq.com/s/-KtQq7YqtyZFakRePot86Q,https://www.biolinscientific.com/blog/what-is-the-difference-between-surface-and-interfacial-tension 1.表面张力是液体与气相接触的特性(一种…
-
粘附功(work of adhesion)
讨论1. What is the work of adhesion? (转摘自:https://www.biolinscientific.com/blog/work-of-adhesion-what-is-it-and-how-to-measure-it) a.定义:粘附功W12是指从相邻两相1和2之间分离需要做的功,可以是…
-
MKL直接法求解双精度稠密矩阵性能测试
Math.net调用intel MKL直接法求解double稠密矩阵线性方程组 Ax=b ,并与Math.net默认性能比较结论: 内存正比 矩阵大小(阶数平方) 耗时正比 矩阵大小(阶数平方)*2倍 大约 MKL性能比Math.net默认高100倍 耗时单…
-
方法重写
只有public的非静态方法可以被重写 重写都是方法的重写和属性无关 为什么需要重写
-
httpd常用配置之虚拟主机
httpd常用配置 目录 httpd常用配置 虚拟主机: 相同IP不同端口 不同IP相同端口 相同IP相同端口不同域名 切换使用MPM(编辑/etc/httpd/conf.modules.d/00-mpm.conf文件): /(/color{red}{注:如果apache为编译安装…
-
super详解
this指向当前类,super指向父类 privite私有的东西可以被继承,但无法被调用 子类构造器默认调用父类的无参构造
-
LeetCode 155 Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: MinStack() initializes the stack object. void push(int val) pushes the …
-
(Axios顺序请求实战)一个Axios请求参数依赖于另一个Axios请求返回值
显示结果和说明 we are the world 是第一个firstRequest得到的返回值,将这个返回值赋值给hostName变量 之后secondRequest根据第一个请求所得到的返回值将返回值赋给第二个请求并得到返回的结果: res from second …
-
【C语言】一维数组倒排
#include <stdio.h> int main() { int arr[] = {1, 2, 3, 4, 5}; int i; int len = sizeof(arr) / sizeof(arr[0]); int mid = len / 2; for (i = 0; i < mid; i++) { int tmp = arr[i]; arr[i] = arr[4 …
-
Echarts 柱状图
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width…