两种方法 方法一 var arry = [...]; Promise.all(arry.map(function(elem){ return new Promise(function(resolve, reject){ ... resolve(result); }) })).then(functio ...
分类:
其他好文 时间:
2020-06-08 14:20:52
阅读次数:
252
python基本内置函数总结一下: 1、abs(x) 返回一个数x的绝对值。参数可以是普通的整数,长整数或者浮点数。如果参数是个复数,返回它的模 2、all(iterable) 如果iterable的所有元素为真(或者iterable为空), 返回True。等同于: def all(iterable ...
分类:
编程语言 时间:
2020-06-08 11:10:09
阅读次数:
116
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the ...
分类:
其他好文 时间:
2020-06-08 11:06:25
阅读次数:
76
将jetson Xavier NX重新刷机之后,在jetson xavier上面运行自己的程序,make编译时发现存在几个库找不到的问题,编译错误截图如下, 1.安装boost库, sudo apt-get install libboost-all-dev 利用上面的命令安装之后,找不到boost的 ...
分类:
其他好文 时间:
2020-06-08 11:00:44
阅读次数:
253
hbase已经配置好 开始使用hbase时 先启动hadoop集群 start-all.sh(前提是在bashrc中配置export PATH=$PATH:$HADOOP_HOME/sbin export PATH=$PATH:$HAOOP_HOME/bin) 然后start-hbase.sh,启动 ...
分类:
其他好文 时间:
2020-06-08 00:39:09
阅读次数:
68
本文参考内容主要有:1. https://gitee.com/all-about-git gitee2. https://www.liaoxuefeng.com/wiki/896043488029600 来自廖雪峰老师的git教程 一、在看命令之前先来了解下git的工作原理 / 流程: Worksp ...
分类:
其他好文 时间:
2020-06-08 00:33:14
阅读次数:
76
Linux内核源码分析 -- 同步原语 -- 自旋锁 spinlock_t typedef struct spinlock { union { struct raw_spinlock rlock; #ifdef CONFIG_DEBUG_LOCK_ALLOC # define LOCK_PADSIZ ...
分类:
系统相关 时间:
2020-06-08 00:16:40
阅读次数:
138
这次例子是个简单的添加接口,估计叫做注册接口吧: import flask,json server = flask.Flask(__name__) all=[] @server.route('/add_user',methods=['post']) def add_user(): user_id = ...
分类:
其他好文 时间:
2020-06-07 16:50:46
阅读次数:
61
flutter 编译报错 What went wrong: Could not determine the dependencies of task ':app:preDebugBuild'. Could not resolve all task dependencies for configura ...
分类:
系统相关 时间:
2020-06-06 11:22:14
阅读次数:
219
在根目录下找到:include/common.inc.php文件 查找代码: error_reporting(E_ALL); 将此代码复制到 if 语句外: 保存之后再次进入管理后台,就可以看到出错提示了! ...
分类:
其他好文 时间:
2020-06-06 10:47:55
阅读次数:
76