color 设置文本颜色 color:#00C; text-align 设置元素水平对齐方式 text-align:right; text-indent 设置首行文本的缩进 text-indent:20px; line-height 设置文本的行高 line-height:25px; text-de ...
分类:
其他好文 时间:
2020-07-12 22:22:59
阅读次数:
59
BFS和DFS DFS遍历使用递归(隐式使用栈): void dfs(TreeNode root) { if (root == null) { return; } dfs(root.left); dfs(root.right); } BFS遍历使用队列 void bfs(TreeNode root) ...
分类:
其他好文 时间:
2020-07-12 22:04:02
阅读次数:
66
圣杯布局 1.结构先加载主体,再加载左右 2.将三者都 float:left , 左右再加上一个position:relative(因为相对定位后面会用到)?3、middle 部分 width:100% 占满 ? 此时 middle 占满了,所以要把 left 拉到最左边,使用 marginlef ...
分类:
其他好文 时间:
2020-07-12 18:57:22
阅读次数:
74
from docx import Document from docx.shared import Pt from docx.enum.text import WD_ALIGN_PARAGRAPH #导入对齐库 文件=Document(r'E:\word练习\页眉页脚.docx') 第一节=文件.s ...
分类:
其他好文 时间:
2020-07-12 12:19:36
阅读次数:
69
1.大纲 内连接:inner join 外连接 (1)左外连接(左边的表不加限制):left join (2)右外连接(右边的表不加限制):right join (3)全外连接(左右表都不加限制):full join(MySQL不支持) (4)只有左表数据 (5)只有右表数据 自连接(同一张表内的连 ...
分类:
其他好文 时间:
2020-07-12 12:10:37
阅读次数:
73
题目描述: 提交: class Solution: def rangeSum(self, nums: List[int], n: int, left: int, right: int) -> int: l = [] for i in range(n): for j in range(i+1,n+1) ...
分类:
编程语言 时间:
2020-07-12 12:02:41
阅读次数:
52
题目描述 给定一个完美二叉树,其所有叶子节点都在同一层,每个父节点都有两个子节点。二叉树定义如下: struct Node { int val; Node *left; Node *right; Node *next; } 填充它的每个 next 指针,让这个指针指向其下一个右侧节点。如果找不到下一 ...
分类:
其他好文 时间:
2020-07-11 22:35:36
阅读次数:
74
1.使用浮动来设置二列布局利用浮动和块级元素实现的左侧宽度固定,右侧自适应宽度的布局方式 <div class="left">left</div> <div class="right">right</div> /* css */ .left { float: left; width: 100px; ...
分类:
Web程序 时间:
2020-07-11 19:33:58
阅读次数:
85
absolute 生成绝对定位的元素,相对于 static 定位以外的第一个父元素进行定位。 元素的位置通过 "left", "top", "right" 以及 "bottom" 属性进行规定。 fixed 生成绝对定位的元素,相对于浏览器窗口进行定位。 元素的位置通过 "left", "top", ...
分类:
Web程序 时间:
2020-07-10 19:30:02
阅读次数:
91
SELECT users.UserID AS Id, users.UserName, users.TrueName, users.Phone, users.Email, STUFF( ( SELECT ',' + roles.Description FROM Accounts_UserRoles u ...
分类:
其他好文 时间:
2020-07-10 15:11:25
阅读次数:
65