listen 80; server_name localhost; # 访问"localhost"的全部请求会被转发到"localhost:81" # localhost => localhost:81 # localhost/a/ => localhost:81/a/ # localhost/b/ ...
分类:
其他好文 时间:
2021-01-21 10:52:23
阅读次数:
0
git常用命令总结 git配置相关命令 配置相关的命令都使用git config开始。详细请参看git config --help.常用到的git配置命令如下: 查看git所有配置项 git config -l或git config --list 直接修改配置文件 git config -e --g ...
分类:
其他好文 时间:
2021-01-21 10:48:15
阅读次数:
0
/** * 栏目列表转成树结构 * * @param list * @return */private static List<SysDict> listToTree(List<SysDict> list,Long id) { if (list == null || list.isEmpty()) ...
分类:
其他好文 时间:
2021-01-21 10:46:05
阅读次数:
0
java集合 集合和数组是对多个数据进行存储操作的结构,简称java容器 数组初始化以后,其长度就确定了;数组一旦定义好,其元素的类型也就确定。 Collection接口 List接口 Vector ArrayList LinkedList Set接口 HashSet LinkedHashSet T ...
分类:
其他好文 时间:
2021-01-21 10:39:12
阅读次数:
0
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <style type="text/css"> 6 *{ 7 margin: 0; 8 padding: 0; 9 } 10 nav ul{ 11 list-style: n ...
分类:
其他好文 时间:
2021-01-20 11:56:23
阅读次数:
0
· 常用的数据类型转换 使用上图中的函数可以将原本的数据类型转换成另一种数据类型,如果我们想对一个 元组进行添加数据,那么我们可以先将它转换成列表,从而更好操作 a = (1, 2) # 先将元组a转换成列表b b = list(a) # b = [1, 2] b.append(3) # b = [ ...
分类:
编程语言 时间:
2021-01-20 11:54:36
阅读次数:
0
定义简单单链表结构 public class ListNode { public int val; public ListNode next; public ListNode(int val = 0, ListNode next = null) { this.val = val; this.next ...
"tabBar": { "color": "#999", "selectedColor": "#ff2d4a", "backgroundColor": "#fafafa", "list": [ { "pagePath": "pages/index/index", "text": "首页", ...
分类:
其他好文 时间:
2021-01-19 12:19:23
阅读次数:
0
1、numpy库 import numpy as np np.random.seed(1) #设置随机种子 np.log(x) #给list中的每个元素取对数 np.multiply(x, y) #list中对应元素相乘 np.dot(x, y) #矩阵乘法 np.power(x, 2) #list ...
分类:
编程语言 时间:
2021-01-19 12:02:12
阅读次数:
0
list转字符串lst= ['a','b','c']"_".join(red_ball) 用前面的字符将序列元素连接成字符串。注意:序列中的元素必须是str!!!如果list元素是整型,需要先转成str。 >>>a_b_cl1= [1,2,3,4,5,6]l1= [str(i) for i in l ...
分类:
编程语言 时间:
2021-01-19 11:57:21
阅读次数:
0