EL表达式 1. 概念:Expression Language 表达式语言2. 作用:替换和简化 jsp页面中java代码的编写 3. 语法:${表达式} 4. 注意: * jsp默认支持el表达式的。如果要忽略el表达式 1. 设置jsp中page指令中:isELIgnored="true" 忽略 ...
分类:
其他好文 时间:
2021-06-02 18:34:27
阅读次数:
0
其他: 1 处理jsonl文件 #!\Users\Local\Programs\Python37 # -*- coding: utf-8 -*- import json def save_data_jsonl(data_dict_list,path="./new_id_source.jsonl"): ...
分类:
Web程序 时间:
2021-06-02 18:34:04
阅读次数:
0
(1)string 这是最基本的类型了,没啥可说的,就是普通的set和get,做简单的kv缓存 例子:常规计数:微博数,粉丝数等 (2)hash 这个是类似map的一种结构,这个一般就是可以将结构化的数据,比如一个对象(前提是这个对象没嵌套其他的对象)给缓存在redis里,然后每次读写缓存的时候,可 ...
分类:
其他好文 时间:
2021-06-02 18:16:17
阅读次数:
0
redis的List存储结构:一个链表加上压缩列表实现的 redis c语言源码双向循环列表# define QL_FILL_BITS 16# define QL_COMP_BITS 16# define QL_BM_BITS 4 /typedef struct quicklist { quickl ...
分类:
其他好文 时间:
2021-06-02 18:11:23
阅读次数:
0
只需要index list.asMap().keys.map((index) { return something; } List<String> list = ['a', 'b', 'c', 'd']; print(list.asMap()); // {0: a, 1: b, 2: c, 3: d ...
分类:
其他好文 时间:
2021-06-02 17:42:11
阅读次数:
0
(1)List自带的排序方法 int可以自动排序,这是因为int 里面实现了排序的接口 默认是升序 (2)自定义类的排序 像下面这样写会报错,因为处理异常 如果要实现排序,需要实现排序接口: (3)通过委托函数进行排序 还可以使用匿名函数 ****************************** ...
分类:
编程语言 时间:
2021-06-02 17:38:55
阅读次数:
0
""" 注意:不要多次运行代码(最好执行代码前先备份所有需要修改的文件夹) """ import os if __name__ == '__main__': path = '****' # 文件存放路径 # 文件夹中所有文件的文件名 file_names = os.listdir(path) # 外 ...
分类:
编程语言 时间:
2021-06-02 17:14:37
阅读次数:
0
<%@ page import="java.util.ArrayList" %> <%@ page import="java.util.List" %><%-- User: 丁帅帅 Date: 21/05/30 Time: 10:00 To change this template use File ...
分类:
其他好文 时间:
2021-06-02 17:00:39
阅读次数:
0
A mathematical theory of communication Audio学习: https://www.youtube.com/watch?v=SgcU9nl9oAM&list=PLWDB4efc1BVY_OzzdeYStpxd2hVe35mVC 背景 目前21世纪所处的时代是信息时 ...
分类:
其他好文 时间:
2021-06-02 16:41:20
阅读次数:
0
单列集合的工具类 // Lists // 创建集合 List<String> list1 = Lists.newArrayList(); List<String> list2 = Lists.newArrayListWithCapacity(8); List<String> list3 = List ...
分类:
其他好文 时间:
2021-06-02 16:29:39
阅读次数:
0