动态规划 思路: 参考62. 不同路径 代码: class Solution: def uniquePathsWithObstacles(self, obstacleGrid: List[List[int]]) -> int: m = len(obstacleGrid) n = len(obstac ...
分类:
其他好文 时间:
2020-06-07 15:05:47
阅读次数:
65
边距重叠 统一的解决方案;设置padding或者border或者触发BFC 边距重叠有一下三种情况: 首先把所有的margin格式清空 <head> <title>边距重叠</title> <style> html *{ margin-top: 0px; padding: 0px; } </styl ...
分类:
其他好文 时间:
2020-06-07 12:56:38
阅读次数:
73
body{ margin: 0 auto; background: #000; font-family: Georgia, Palatino, serif; color: #EEE; line-height: 1; max-width: 960px; padding: 30px; } h1, h2, ...
分类:
其他好文 时间:
2020-06-07 12:52:06
阅读次数:
65
一、flex布局 顶部,底部固定,中间自适应(中间左固定,右自适应)。 <body> <div class="container"> <div class="header"></div> <div class="content"> <div class="left"></div> <div clas ...
分类:
Web程序 时间:
2020-06-07 10:59:54
阅读次数:
64
盒子模型 认识盒子模型 所谓盒子模型就是把HTML页面中的元素看作是一个矩形的盒子,也就是一个盛装内容的容器。每个矩形都由元素的内容、内边距(padding)、边框(border)和外边距(margin)组成。 网页就是多个盒子嵌套排列的结果。 内边距出现在内容区域的周围,当给元素添加背景色或背景图 ...
分类:
其他好文 时间:
2020-06-06 23:25:53
阅读次数:
92
Document <style> * { padding: 0; margin: 0; } div { position: absolute; top: 50px; left: 0; height: 200px; width: 200px; background-color: pink; } spa ...
分类:
其他好文 时间:
2020-06-06 18:58:43
阅读次数:
67
<!-- edit by yunecommerce.com add the countdown timer --> <style>#progress_bar{margin-top:15px}.progressbar.progressbar{background:#ffe8e8;border:0px ...
分类:
移动开发 时间:
2020-06-06 18:48:48
阅读次数:
148
需要的库:matplotlib 用法: import matplotlib.pyplot as plt plt.plot(x, y) #x, y是两个列表 plt.show() 例子: import matplotlib.pyplot as plt x = [1, 2, 3] y = [2, 3, ...
分类:
编程语言 时间:
2020-06-06 18:20:56
阅读次数:
113
日历 <style>* { padding: 0; margin: 0; }li { list-style: none; }body { background: #f6f9fc; font-family: arial; } .calendar { width: 210px; margin: 50px ...
分类:
其他好文 时间:
2020-06-05 23:10:26
阅读次数:
89