前序遍历: result = [] st = [root] while st: node = st.pop(-1) if node.right: st.append(node.right) if node.left: st.append(node.left) result.append(node.v ...
分类:
其他好文 时间:
2021-06-28 20:43:55
阅读次数:
0
点击选项卡时,点击事件如下: wx.navigateTo({ url: '../device/device' }) 微信小程序报错:navigateTo:fail can not navigateTo a tabbar page,解决方法如下: wx.switchTab({ url: '../dev ...
分类:
微信 时间:
2021-06-28 20:38:23
阅读次数:
0
一、简介 二、源代码 clear lam=500e-9;N=2; a=2e-4;D=5;d=5*a; ym=2*lam*D/a;xs=ym; n=1001; ys=linspace(-ym,ym,n); for i=1:n sinphi=ys(i)/D; alpha=pi*a*sinphi/lam; ...
分类:
其他好文 时间:
2021-06-28 20:31:55
阅读次数:
0
极限,比如说数列极限,直观来讲说的是“当n越来越大时,数列\({\{ a}_{n}\}\)越来越靠近实数L”,而其正式定义,也称为数列极限的(ε, N)定义,却这么描述:设 \(\left\{ a_{n} \right\}\) 为数列,\(a\) 为定数. 若对任给的正数 \(\varepsilon ...
分类:
其他好文 时间:
2021-06-28 19:58:07
阅读次数:
0
Luogu P5960 【模板】差分约束算法 差分约束模板题。 #include<bits/stdc++.h> using namespace std; #define N 1000005 int first[N], Next[N], to[N], w[N], tot; int dis[N], vi ...
分类:
其他好文 时间:
2021-06-28 19:53:48
阅读次数:
0
div{ width: 0px; border: 30px solid transparent; border-left-color: tomato;} 第二种方法 div{ margin: auto; width: 0px; border-top: 20px solid transparent; ...
分类:
其他好文 时间:
2021-06-28 19:45:26
阅读次数:
0
之前用Ubuntu虚拟机来编译鸿蒙源码,听说DevEco Device Tool 2.2 Beta1可以在Windows一站式编译。马上尝尝。 1 准备工作 参考社区的文档 参考官网文档,部署Windows环境 上官网下载HUAWEI DevEco Device Tool 2.2 Beta1,简称D ...
办公室有一台HP LaserJet 1020p 连接在有线网络上。 我的Manjaro用HP Device Manager怎么也添加不上这个机器(可以看到但添加不上驱动)。最后检查了服务,发现cups没开。 sudo systemctl enable cups sudo systemctl star ...
分类:
其他好文 时间:
2021-06-28 19:26:16
阅读次数:
0
定位 相对定位 相对定位 : position: relative; 相对于原来的位置,进行指定的偏移,相对定位的话,他仍然在文档流中 top : 10px; 距离上方移动10px (向下) left bottom right :-20px; 距离右方移动-20px (向右) html : <!DO ...
分类:
Web程序 时间:
2021-06-28 19:21:53
阅读次数:
0
父级边框塌陷问题 clear clear : right; 右侧不允许有浮动元素 clear : left; 左侧不允许有浮动元素 clear : both; 两侧不允许有浮动元素 clear : none; 解决方法: 1.增加父级元素的高度 #box{ width: 1500px; height ...
分类:
Web程序 时间:
2021-06-28 19:13:22
阅读次数:
0