##从列表中找出某个值第一个匹配的索引值 list18 = [1,2,3,4,5, 3,4,5,6] index18 = list18.index(3) ##圈定范围 index19 = list18.index(3, 3, 7) print(index18, index19) ##列表中元素个数 ...
分类:
编程语言 时间:
2021-01-27 12:52:05
阅读次数:
0
一、测试类 import java.util.Arrays; public class SortTest { private static final int L = 20; public static void main(String[] args) { int [] arr = new int[ ...
分类:
编程语言 时间:
2021-01-26 12:42:40
阅读次数:
0
1、构造器注入 <bean id="user" class="com.wang.pojo.User"> <!--方式一--> <!-- <constructor-arg index="0" value="王野"/>--> <!--方式二,不建议使用,如果有多个参数,--> <!-- <constru ...
分类:
编程语言 时间:
2021-01-26 12:41:18
阅读次数:
0
import React from 'react'; import style from './index.module.scss'; const icon = `<svg t="1587390375993" class="icon" viewBox="0 0 1024 1024" version= ...
分类:
其他好文 时间:
2021-01-26 12:33:54
阅读次数:
0
1.less的使用,使用less时,需要下载Easy LESS,这样创建两个js文件,index.less及index.css,只用操作index.less会自动转化为index.css,还有设置 px时会提示转化为rem 2.动画 .div2 width: 8.0375rem; height: 8 ...
分类:
其他好文 时间:
2021-01-26 12:19:33
阅读次数:
0
原题链接 begin为最长不含重复字符的子字符串的起点 1 class Solution: 2 def lengthOfLongestSubstring(self, s: str) -> int: 3 begin,ans,dic = 0,0,{} 4 for index,c in enumerate ...
分类:
其他好文 时间:
2021-01-26 11:51:45
阅读次数:
0
1.层级 对于开启了定位的元素,可以通过z-index属性来指定元素的层级 z-index需要一个整数作为参数,值越大元素的层级越高,元素的层级越高越优先显示 如果元素的层级一样,则优先显示靠下的元素 祖先元素的层级再高也不会盖住后代元素 2.字体相关 2.1字体相关的样式 color:用来设置字体 ...
分类:
Web程序 时间:
2021-01-26 11:43:44
阅读次数:
0
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Bootstrap 实例 - 模态框(Modal)插件</title> <link rel="stylesheet" href="http://cdn.static.runoob. ...
分类:
其他好文 时间:
2021-01-25 10:58:08
阅读次数:
0
动态资源代理 location / { proxy_pass 路径; } 静态资源代理 location / { root 静态资源路径; index 默认访问路径下的什么资源; autoindex on; # 带表展示静态资源下的全部内容,以列表的形式展示。 } # 先修改docker,添加数据卷 ...
分类:
其他好文 时间:
2021-01-25 10:35:10
阅读次数:
0
本来想学习house of force,结果没用就直接做出来了。。。我用了三种方法来做这道题。 1.fastbins attack 2.unlink 3.house of force 可以改写got表,程序在edit的时候可以进行溢出。 fasbins attack 通过溢出改写size字段,构造堆 ...
分类:
其他好文 时间:
2021-01-22 11:47:40
阅读次数:
0