let fs = require('fs') // 封装 异步读取文件 function fsRead(path){ return new Promise(function(resolve,reject){ fs.readFile(path,{flag:"r",encoding:"utf-8"},f ...
分类:
Web程序 时间:
2021-06-15 17:32:36
阅读次数:
0
import redisr = redis.Redis(host="0.0.3.40",password="123123&*",port=6379,db=4,decode_responses=True)#字符 string k-v#哈希 hash#字符串 string k-v {"name":111 ...
分类:
编程语言 时间:
2021-06-13 10:56:05
阅读次数:
0
xshell无法通过密码登录的问题如下: 1、登录主机:vi /etc/ssh/sshd_config 2、搜索关键字:PasswordAuthentication 3、将PasswordAuthentication no改为yes 4、保存后重启网络设置:service sshd restart ...
分类:
系统相关 时间:
2021-06-13 10:49:47
阅读次数:
0
package cn.ruhsang.gaoji;import java.util.concurrent.Executor;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;//测试线程 ...
分类:
编程语言 时间:
2021-06-13 10:29:12
阅读次数:
0
1、自动配置好tomcat: 引入spring-boot-starter-web依赖会创建一个8080端口的内嵌Tomcat(可以通过application.yaml配置文件的server.port配置自定义端口[e.g: server.port=8888]) 2、自动配置好SpringMVC、We ...
分类:
其他好文 时间:
2021-06-13 09:38:04
阅读次数:
0
从事算法设计应当熟悉的资源。 22.1算法库www.algorist.com 22.1.1 LEDALEDA,高效数据类型与C++算法库,可能是支持组合计算的最好唯一资源。(https://www.algorithmic-solutions.com/) 22.1.2 CGAL计算几何算法库或CGAL ...
分类:
编程语言 时间:
2021-06-13 09:27:30
阅读次数:
0
Rsync+Notify: yum install make gcc gcc-c++ 客户端启动rsync port:873/usr/local/rsync/bin/rsync --daemon --config=/usr/local/rsync/rsync.conf Client:tar xf r ...
分类:
其他好文 时间:
2021-06-13 09:26:06
阅读次数:
0
from turtle import * def square(size = 50, rgb = 'orange'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) fo ...
分类:
其他好文 时间:
2021-06-13 09:19:11
阅读次数:
0
package { import flash.display.MovieClip; import flash.html.HTMLLoader; import flash.net.URLRequest; import fl.core.UIComponent; import flash.display. ...
分类:
Web程序 时间:
2021-06-11 19:15:57
阅读次数:
0
proto编译引用外部包问题 在test.proto文件中引用了一个外部包: import "google/api/annotations.proto"; 当使用命令编译的时候提示找不到包: # protoc --go_out=plugins=grpc:. ./test.proto google/a ...
分类:
其他好文 时间:
2021-06-11 19:07:29
阅读次数:
0