在 linux 下面,查找路径一般是 where ,但是同样的命令在PS下面是不行的。 在PS下有个查看别名的命令:Get-Alias ,看一下where是啥? Alias where -> Where-Object 原来 where 是 Where-Object 这个命令的别名,并不是查看路径用的 ...
分类:
系统相关 时间:
2021-06-05 18:16:02
阅读次数:
0
private void txtMaxCount_TextChanged(object sender, EventArgs e) { //替换非数字 this.txtMaxCount.Text = Regex.Replace(this.txtMaxCount.Text, @"[^\d]*", "") ...
一、数组扁平化 有数组:let arr = [[2, 3, 1],[4, 3, 6, 5],[6, 2, 4, 9, [4, 11, 12, [12, 13, [10], 15]]], 20]1. reduce //若值为数组则递归遍历,否则concat function flatten(arr) ...
分类:
编程语言 时间:
2021-06-05 17:40:20
阅读次数:
0
namespace TestQuestionaire { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void bt_ok_Click(object sender, Eve ...
编辑指标时,还没有点击保存。后面table里对应的数据就发生了改变。 因为赋值的时候是直接= 属于js内存中的浅拷贝。 this.EquipMetricDefFormData = row; 解决方案 //数据赋值 深拷贝代替浅拷贝 this.EquipMetricDefFormData = JSON ...
分类:
其他好文 时间:
2021-06-04 19:24:12
阅读次数:
0
总纲:循序渐进、不急不躁、找到根因 1、Attributerror: Session object has no attribute 'watchers' 出现场景:在Jenkins用例编写时,出现以上问题提示。 程序之前都是正常的,周五升级了uiautomator2、weditor、pytest的 ...
分类:
其他好文 时间:
2021-06-04 19:23:03
阅读次数:
0
现有对象obj和空对象copy,想将obj的每一项都复制到copy对象中 let obj = { name:'aaa', age: 18 } let copy = {} 方法1:使用for...in... for(let key in obj){ copy[key] = obj[key] } con ...
分类:
其他好文 时间:
2021-06-04 19:11:44
阅读次数:
0
目录 1.中文语料常常遇到编码问题,将任意字符集文件转为utf-8编码 2.将unlabel文件夹中的所有.txt文件合并,每个文件之间空一行 3.随机抽取.txt文件中的60%,20%,5% 4.将已经分好词的文件去掉空格(正则),恢复成文件原来的样子 5.读取excel文件转换成.json文件 ...
分类:
其他好文 时间:
2021-06-04 18:46:36
阅读次数:
0
一、自定义全局异常json数据 任何接口都是可能出错,4xx、5xx等 如果业务没有做好统一的错误管理,直接暴露给用户,无疑是看不懂 所以假如后端某个业务出错,Nginx 层也需要进行转换 让前端知道 Http 响应是200,其实是将错误的状态码定向至200,返回了全局兜底数据 location / ...
分类:
其他好文 时间:
2021-06-04 18:44:38
阅读次数:
0
方法一: 在 package.json 中添加 --open 方法二: 在 vue.config.js 中,devServer 添加加 open:true ,没有vue.config.js,自己创建一个 module.exports = { devServer: { open: true } } ...
分类:
其他好文 时间:
2021-06-03 18:18:31
阅读次数:
0