go mod包管理 基本每个语言都有自己的包管理工具,node的npm,yarn;Python pipenv,venv;Java的maven等等,go 当然也有自己的包管理工具 mod(Modules简写) 参考链接 官方github https://github.com/golang/go/wik ...
分类:
其他好文 时间:
2020-12-31 11:51:58
阅读次数:
0
Java基础之:List——ArrayList & Vector ArrayList简单介绍 ArrayList实现了List接口,底层是一个数组,并实现了可变的功能。底层属性(transient Object[] elementData;)在序列化时,忽略该属性。 ArrayList实现了List ...
分类:
编程语言 时间:
2020-12-31 11:46:33
阅读次数:
0
import os import time import shutil def del_file(filepath): """ 删除某一目录下的所有文件或文件夹 """ del_list = os.listdir(filepath) for f in del_list: file_path = os ...
分类:
其他好文 时间:
2020-12-31 11:42:16
阅读次数:
0
i5-11300H 为 4 核 8 线程,主频 3.1GHz,睿频 4.4GHz,三级缓存 8MBi5-11300H 怎么样看完你就知道了 https://list.jd.com/list.html? ...
分类:
其他好文 时间:
2020-12-30 11:38:28
阅读次数:
0
## 查该钱包的所有订单 状态。./lotus-miner storage-deals list | grep '钱包' ## 查没出去的消息。加 |wc -l 数数量./lotus mpool pending --local | jq -c .|wc -l ## 创建软raidmdadm -C - ...
分类:
其他好文 时间:
2020-12-30 11:37:23
阅读次数:
0
1、任何类型+“”=字符串类型 2、泛型(动态数组): List<int> a = new List<int>(); List<数据类型> 名字 = new List<数据类型>(); 3、string转换为int: string s=Console.ReadLine(); int a=Conver ...
从metaspace系列-metaspace初识中我们知道metaspace这个类定义了几个属性,这几个属性其实是三对,因为metaspace里面包含了两类数据,分别是类相关的元数据和非类相关的元数据,从下图截取src/share/vm/memory/metaspace.hpp的源码图可以看出来元数 ...
分类:
Web程序 时间:
2020-12-30 11:32:38
阅读次数:
0
问题 1.List、LinkedList、Vector可以存null吗? 2.HashSet、TreeSet可以存null吗? 3.HashMap、TreeMap、Hashtable可以存null吗? 测试代码 public class TestNull { public static void m ...
分类:
其他好文 时间:
2020-12-30 11:28:59
阅读次数:
0
axios等待同步请求 methods: { getLightList() { let that = this; return new Promise((resolve, reject) => { that.query.type = '0';// 灯光 getLightList(this.query ...
分类:
移动开发 时间:
2020-12-30 11:21:01
阅读次数:
0
计划任务crontab-e*/1****sudosh/root/redis/redis_cluster/7003-cron.sh脚本#!/bin/shredis=`netstat-an|grep":7003"|awk‘$1=="tcp"&&$NF=="LISTEN"{print$0}‘|wc-l`if[$redis-eq0];then#端口被占用执行如下sudo/root/redi
分类:
其他好文 时间:
2020-12-30 11:20:41
阅读次数:
0