Net Core使用Log4net报错,添加代码即可 static void Main(string[] args){ System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance); } 转 ...
分类:
移动开发 时间:
2021-02-06 12:11:25
阅读次数:
0
''' @Author: feizzhang Created on: 02.02.2021 ''' def split_img_to_anypieces(img_path, output_dir, ratio_w = 2, ratio_h = 2): ''' Args: img_path: the ...
分类:
编程语言 时间:
2021-02-06 11:51:02
阅读次数:
0
备用: 在调试一个前后端分离的项目,发现登录成功后已经把信息保存到session中了,再从session中取得当前用户信息的时候发现取不到,debug发现sessionId已经变了,自己网上查了很多资料,并不准确, 把自己的解决分享给大家: 后端拦截器: //拦截器添加跨域支持(如果是web.xml ...
分类:
其他好文 时间:
2021-02-05 10:40:40
阅读次数:
0
分享一些我常用的代码优化技巧,希望对你有帮助。 1. 多表达式多 if 判断 我们可以在数组中存储多个值,并且可以使用数组include方法。 1 // 长 2 if (x 'abc' || x 'def' || x 'ghi' || x 'jkl') { //logic} 3 // 短 4 if ...
分类:
编程语言 时间:
2021-02-05 10:39:53
阅读次数:
0
问题描述 在 Jenkins Pipeline 中,控制台(Console Output)输出的日志包含大量 Pipeline 执行日志(如下以 [Pipeline] 为前缀的日志行): ... [Pipeline] stage [Pipeline] { (Declarative: Checkout ...
分类:
其他好文 时间:
2021-02-05 10:31:58
阅读次数:
0
什么是计算机 聊聊装机 CPU** Memory(内存) Motherboard(主板) IO设备(input/output设备,输入/输出设备) 显卡 冯·诺伊曼体系结构 冯·诺伊曼计算机的特点 重要 存储程序:把程序与数据预先加载到内存中,数据和程序从内存中读取,使得速度++(内存>>>纸袋)。 ...
分类:
其他好文 时间:
2021-02-04 12:04:33
阅读次数:
0
前端去处理节日 逻辑 要处理哪一年的。 哪一年,每月的天数。 判断,放入数组。 let array = []; let yearNow = new Date().getFullYear(); for(let i=0;i<12;i++){ //月份加一 let date = new Date(year ...
分类:
Web程序 时间:
2021-02-04 12:04:13
阅读次数:
0
let require = ()=>{throw new Error('函数必须传参')} let print = (num=require())=>{console.log(num)} print(2) // 2 print(null) // null print() // 报错 ...
分类:
其他好文 时间:
2021-02-04 11:52:57
阅读次数:
0
仅供自己学习 题目: Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \1 3 6 9Output: 4 / \ 7 2 / \ / \9 6 3 1 思路: 这就是直接交换数据就可以了,可以前序遍历,后序遍历,中序遍历的交换 代码: 前序 ...
分类:
其他好文 时间:
2021-02-04 11:44:27
阅读次数:
0
true UTF-8 %d{yyyy-MM-dd HH:mm:ss.SSS} %highlight(%-5level) %magenta([PID:${PID:-}]) %green([%15.15thread]) %cyan(%40.40logger:%-5.5L):%msg%n ${PATH}/ ...
分类:
编程语言 时间:
2021-02-03 11:07:10
阅读次数:
0