int sumOddLengthSubarrays(int* arr, int arrSize){ int i,j,cnt,sum,total=0; for(i=0; i<arrSize; i++) { cnt=0; sum=0; for(j=i; j<arrSize; j++) { cnt++; ...
分类:
编程语言 时间:
2020-11-08 17:21:52
阅读次数:
23
开始吧 1、 准备 403 错误页面 <div class="layui-body"> <!-- 内容主体区域 --> <div style="padding: 15px;"> <h1>非常抱歉!您没有访问这个功能的权限!(回家照照镜子)</h1> <h2>${message }</h2> </di ...
分类:
其他好文 时间:
2020-11-08 17:20:06
阅读次数:
22
html <template> <div class="wrapper"> <div class="container"> <div class="menu"> <ul class="menu-list"> <li v-for="(nav, index) in navList" :key="inde ...
分类:
Web程序 时间:
2020-11-08 17:17:44
阅读次数:
40
在用 visual studio code 工具时想写<div>时自动补全</div>网上百度了如何补全 第一:链接:https://www.jianshu.com/p/1c326fe1e4ef ,通过这个文章我不知道如何找到 setting.json 文件 1. 首先在vscode商店中下载并重新 ...
分类:
其他好文 时间:
2020-11-08 17:13:37
阅读次数:
20
使用css定制表格: .table{ display:table; /*相当于table*/ section{ &:nth-of-type(1){ display:table-header-group; /*相当于thead*/ background:#555; color:#fff; } &:nt ...
分类:
Web程序 时间:
2020-11-08 17:12:24
阅读次数:
27
一次,要实现一个公告,需要走马灯效果。 发现,文字的宽度计算是需要用一个模拟的元素来计算的,因为我们用来实现走马灯效果的元素肯定是要设置overflow:hidden;的。 即,我们不可能用走马灯效果本身需要用到的div来计算文字的总宽度。 其次,也要注意各个端的font-size,文字的宽度与此相 ...
分类:
其他好文 时间:
2020-11-08 17:04:57
阅读次数:
24
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>div+css</title> <style type="text/css"> .out{ border:solid 1px red; width: 960px; height: ...
分类:
Web程序 时间:
2020-11-08 17:04:26
阅读次数:
25
冒号:$("input:checkbox")表示input节点下带有checkbox属性的节点,一般用于$("input:checkbox[name='aaaa']");表示input节点下所有name属性值为"aaaa"的checkbox 空格:p span{}选择了P元素下的所有span元素。这 ...
分类:
Web程序 时间:
2020-11-08 17:03:04
阅读次数:
34
1.斐波那契数列(Fibonacci sequence),又称黄金分割数列、因数学家莱昂纳多·斐波那契(Leonardoda Fibonacci)以兔子繁殖为例子而引入,故又称为“兔子数列”,指的是这样一个数列:0、1、1、2、3、5、8、13、21、34、……在数学上,斐波那契数列以如下被以递推的 ...
分类:
其他好文 时间:
2020-11-08 16:58:50
阅读次数:
19
调用本地css文件的方法 setting.py里面的内容 import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirn ...
分类:
其他好文 时间:
2020-11-08 16:56:15
阅读次数:
21