调用方要求把windows下几个互相调用的web服务封装为exe形式。为了方便调用方使用,要求提供启动和关闭bat脚本。 启动脚本start.bat @echo off set port_backend=5000 start "ne_backend" cmd /k call start_backen ...
分类:
其他好文 时间:
2020-05-26 12:43:03
阅读次数:
205
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
1、后台在使用sql语句in时,前端数据例如字段值是1,2,3 这时就需要先把该字符串转成数组的然后在进行拼接 string str = "1,2,3,4,5,6,7"; string[] strArray = str.Split(','); //字符串转数组 str = string.Empty; ...
分类:
其他好文 时间:
2020-05-25 16:13:03
阅读次数:
97
https://blog.csdn.net/yiyele/article/details/80605909 一、生成数据表1、首先导入pandas库,一般都会用到numpy库,所以我们先导入备用:import numpy as npimport pandas as pd122、导入CSV或者xlsx ...
分类:
其他好文 时间:
2020-05-25 09:47:22
阅读次数:
624
function largeCount(f, t) { f += ""; t += ""; let fl = f.length, tl = t.length, arr = [], i = 0, spacing = fl - tl, len = 0, lastMan = [], fr = f.spli ...
分类:
其他好文 时间:
2020-05-25 00:20:57
阅读次数:
74
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 00:11:01
阅读次数:
66