##从列表中找出某个值第一个匹配的索引值 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
Java注解Annotation 元注解 @Retention 保留期,当@Retention应用到一个注解上,说明了这个注解的存活时间。 RetentionPolicy.SOURCE 注解只在源码阶段保留,在编译器进行编译时它将被丢弃忽视 RetentionPolicy.CLASS 注解只被保留到 ...
分类:
编程语言 时间:
2021-01-26 12:44:39
阅读次数:
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
一、nfs服务器配置 $ yum install -y nfs-utils $ mkdir -p /usr/local/nacos/nfs-share $ mkdir -p /usr/local/nacos/mysql-slave $ mkdir -p /usr/local/nacos/mysql- ...
分类:
Web程序 时间:
2021-01-26 12:42:06
阅读次数:
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、MySQL配置: jdbc:mysql://<主机名>:<端口号(默认3306)>/<数据库名> url=jdbc:mysql://localhost:3306/testdb?useUnicode=true&characterEncoding=utf-8 driver=com.mysql.jdb ...
分类:
数据库 时间:
2021-01-26 12:21:17
阅读次数:
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
登陆MySQL [root@localhost mysql]# /usr/local/mysql/bin/mysql -uroot //未设置密码 [root@localhost mysql]# /usr/local/mysql/bin/mysql -uroot -p //输入密码 mysqladm ...
分类:
数据库 时间:
2021-01-26 11:55:04
阅读次数:
0
参考官网流程: https://golang.google.cn/doc/install wget https://golang.google.cn/dl/go1.15.7.linux-amd64.tar.gz tar -C /usr/local -zxvf go1.15.7.linux-amd64 ...
分类:
系统相关 时间:
2021-01-26 11:52:20
阅读次数:
0