无序集合 在name对应的集合中添加元素,可以添加多个元素 sadd(name,values) redis_conn.sadd('name', '王二狗', '王大锤')result = redis_conn.smembers('name') # 获取当前set集合中的元素内容print(resul ...
分类:
编程语言 时间:
2021-01-12 10:44:34
阅读次数:
0
public function add() { $data = input('post.'); $img = request()->file('img_banner'); $info = $img->move("./static/uploads/lunbo"); if ($info) { // 输出 ...
分类:
Web程序 时间:
2021-01-12 10:30:06
阅读次数:
0
1、 编译阶段 C++语言编译主要分为四个阶段: 源代码: 1 #include <stdio.h> 2 #include <assert.h> 3 4 #define paster( n ) printf( "token " #n" = %d\n ", token##n ) 5 int add(i ...
分类:
编程语言 时间:
2021-01-11 11:14:15
阅读次数:
0
父级 //改变盒子模型display:flex //排列方向左右row;上下column; flex-direction:row、column、row-reverse、column-reverse //是否换行显示默认:nowrap flex-warp:nowrap、wrap、wrap-revers ...
分类:
其他好文 时间:
2021-01-11 11:11:31
阅读次数:
0
asp.net core 5.0 中的 JsonConsole Intro asp.net core 5.0 中日志新增了 JsonConsole,还是输出日志到 Console,但是会应用 Json 格式的一个 Formatter 把日志序列化成 json 再输出到控制台 Sample 一起来看一 ...
分类:
Web程序 时间:
2021-01-11 10:50:29
阅读次数:
0
ls -a : 可以查看到当前目录下所隐藏的文件,比如 .git文件夹 .git 目录是本地仓库 git config :来配置 git .gitignore : 创建这个文件,里面填写不需要提交到git的文件名,就可以不提交 git init : 会创建.git目录 git add (路径) xx ...
分类:
其他好文 时间:
2021-01-11 10:47:32
阅读次数:
0
方法 //main方法 public static void main(String[] args) { int sum=max(1,2); int sum2=add(1,2); System.out.println(sum); System.out.println(sum2); } //加法 pu ...
分类:
编程语言 时间:
2021-01-11 10:44:24
阅读次数:
0
gvisor简介 gvisor是google新推出一款沙箱运行时,他可以和docker和k8s无缝连接。 gVisor能够在保证轻量化优势的同时,提供与虚拟机类似的隔离效果。gVisor的核心为一套运行非特权普通进程的内核, 且支持大多数Linux系统调用。该内核使用Go编写,这主要是考虑到Go语言 ...
分类:
Web程序 时间:
2021-01-11 10:42:52
阅读次数:
0
1.检查配置文件 my.cnf 如果存在修改为如下值,没有则添加 innodb_large_prefix = 1 innodb_file_per_table = 1 innodb_file_format = Barracuda 2.修改建表语句,添加 row_format=dynamic drop ...
分类:
数据库 时间:
2021-01-11 10:41:29
阅读次数:
0
haproxy支持端口组 feat 如果backend中的server选项不设置端口号,则haproxy向后端服务器发起请求时,目标端口将使用client请求listen/frontend时,使用的目标端口(端口用bind选项配置) config listen fe-xx # $listen_add ...
分类:
其他好文 时间:
2021-01-11 10:33:50
阅读次数:
0