?自定义排序格式 ///对 num [1,n+1)区间进行自定义排序 Arrays.sort(num,1,n+1,new Comparator<Integer>() { public int compare(Integer o1,Integer o2) { return o1-o2;///o1-o2 ...
分类:
编程语言 时间:
2021-01-11 10:56:15
阅读次数:
0
foreach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。foreach元素的属性主要有 item,index,collection,open,separator,close。item集合中每一个元素进行迭代时的别名,index表示在迭代过程中,每次迭代到的位置,open该语句以 ...
分类:
其他好文 时间:
2021-01-08 10:37:57
阅读次数:
0
select服务端,同时关注客户端连接,客户端发送和终端输入。将客户端发送和终端输入的内容全都写入到一个文件中 【linux中】 【tcp-file-io-select-server.py】from select import select import sys s = socket() s.bin ...
分类:
其他好文 时间:
2021-01-08 10:29:18
阅读次数:
0
客户端报“[ERROR] code: 505, UNEXPECTED_FRAME - expected content header for class 60, got non content header frame instead, recoverable: false, server: tru ...
分类:
其他好文 时间:
2021-01-07 12:36:33
阅读次数:
0
1 f = open("20201212.txt", "w") 2 f.write ("20201212") 3 4 f=open("20201212.txt","r") 5 print(f.read()) 6 f.close() 7 8 f=open("20201212.txt","r") 9 n ...
分类:
编程语言 时间:
2021-01-07 12:03:08
阅读次数:
0
【C#MVC】.NET中的IOC--Autofac简单使用 Autofac是.NET世界中的IOC容器,据说是效率最高的IOC。 使用IOC的优点大家很清楚,不太懂的请移步百度。由于我的博客最主要的目的之一是为了给自己看,以便以后使用,所以里面例子会多一点,讲解很少,有些我理解的就一笔带过了。 因为 ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Li ...
Electron Electron是一个能让你使用传统前端技术(Nodejs, Javascript, HTML, CSS)开发一个跨平台桌面应用的框架。这里所说的桌面应用指的是在Windows、OSX及Linux系统上运行的程序。 1. 安装Node.js Electron 是基于 Node.js ...
分类:
其他好文 时间:
2021-01-06 12:01:13
阅读次数:
0
获取response并创建一个静态的DOMString this.axios.get(url,{ responseType: 'blob' }).then(res) { var src = window.URL.createObjectURL(res.data); //src 就是一个可以显示图片的 ...
分类:
移动开发 时间:
2021-01-05 11:39:07
阅读次数:
0
使用方式 KafkaProducer 发送消息主要有以下 3 种方式: Properties properties = new Properties(); properties.setProperty("bootstrap.servers", "localhost:9092"); propertie ...
分类:
其他好文 时间:
2021-01-05 10:45:01
阅读次数:
0