从后端获取到的数据经console.log()后如下: 第一行文本 第二行文本 第三行文本 第四行文本 第五行文本 操作步骤: console.log(result); var aa = JSON.stringify(result); //先把文本转成字符串 var strs = new Array ...
分类:
其他好文 时间:
2020-05-28 16:34:44
阅读次数:
96
let arr = '1234567890' function trans(arr){ let b=arr.split('').reverse() return b.reduce((pre, cur, idx)=>{ return ((idx%3)?cur:cur+',') + pre }) } c ...
分类:
其他好文 时间:
2020-05-28 12:46:09
阅读次数:
48
条件: if condition1: statement1 elif condition2: statement2 ...... else conditionN: statementN 判断条件的省略用法: string 空字符串为False, 非空字符串解析为True int 0解析为False, ...
分类:
其他好文 时间:
2020-05-27 22:05:32
阅读次数:
86
1.读取 2.数据预处理 3.数据划分—训练集和测试集数据划分 from sklearn.model_selection import train_test_split x_train,x_test, y_train, y_test = train_test_split(data, target, ...
分类:
其他好文 时间:
2020-05-27 13:40:14
阅读次数:
82
appium版本--v1.4.16 1、找到appium的安装目录下的adb.js文件,目录为:Appium\node_modules\appium\node_modules\appium-adb\lib2、打开adb.js,找到如下代码: ADB.prototype.shell = functio ...
分类:
移动开发 时间:
2020-05-27 11:57:48
阅读次数:
70
1.读取 2.数据预处理 3.数据划分—训练集和测试集数据划分 from sklearn.model_selection import train_test_split x_train,x_test, y_train, y_test = train_test_split(data, target, ...
分类:
其他好文 时间:
2020-05-27 09:25:14
阅读次数:
77
function refresh(){ url = location.href; var once = url.split("#"); console.log(once); if (once[2] != 1) { url += "#1"; self.location.replace(url); wi ...
分类:
其他好文 时间:
2020-05-26 12:25:42
阅读次数:
59
问题 今天在复习之前的深拷贝时发现这样一个问题: 如代码所示,当我在console输出语句中对正则捕获RegExp.$X进行split分割,,结果后续的任何语句(例如console语句)均无法读取到正则捕获组RegExp.$X的值。 先将测试代码贴下 const obj = function tes ...
分类:
编程语言 时间:
2020-05-26 01:08:55
阅读次数:
73
1.读取 2.数据预处理 3.数据划分—训练集和测试集数据划分 from sklearn.model_selection import train_test_split x_train,x_test, y_train, y_test = train_test_split(data, target, ...
分类:
其他好文 时间:
2020-05-25 19:27:04
阅读次数:
61
算法目标:支持中小型支付系统,单机房生成订单号QPS<=1w,保证订单号绝对唯一,机房内趋势递增; 序列号生成算法(字符串订单号): {2字节,机房唯一序列号}{14字节,年月日时分秒}{3字节,毫秒}{3字节,微秒}{4字节,自增序列号} 举例: 机房A: "{01}{20171028195147 ...
分类:
编程语言 时间:
2020-05-25 19:19:50
阅读次数:
125