unit DataStructUnit; interface type txmlvulrd =record sname:string; svul:string; end; txmlbasedDataStruct = class private Fifissubitem: Boolean; funct ...
分类:
其他好文 时间:
2021-06-28 18:17:02
阅读次数:
0
新建文件后缀名为.java 编写代码 public class Hello{ public static void main(String[] args) { System.out.print("Hello,world!"); } } 通过javac编译 java文件,生成一个同名class文件 运 ...
分类:
编程语言 时间:
2021-06-28 18:02:14
阅读次数:
0
处理时间的场景在软件开发中很常见,JDK提供了Date和Calendar,然而这套API并不是很好用。这里推荐使用JodaTime来进行时间的处理。这里放上JodaTime的官网地址:https://www.joda.org/joda-time/ Maven中央库中的依赖: <!-- https:/ ...
分类:
其他好文 时间:
2021-06-28 17:58:55
阅读次数:
0
LocalDate 年月日 LocalTime 时分秒 LocalDateTime 年月日时分秒 以 LocalDate 为例 package com.lch.time; import java.time.*; import java.time.format.DateTimeFormatter; i ...
分类:
其他好文 时间:
2021-06-28 17:53:00
阅读次数:
0
常量 字符串常量 字符 例如:'f','i','z','a'编译器为每个字符分配空间。 'f' 'i' 'z' 'a' 字符串 例如:"hello"编译器为字符串里的每个字符分配空间以'\0'结束。 'h' 'e' 'l' 'l' 'o' '\0' 基本类型 整数型: short int,int,l ...
分类:
编程语言 时间:
2021-06-28 17:42:50
阅读次数:
0
粘包问题及解决方案 一 什么是粘包问题 前提:只有TCP会发生粘包现象,UDP永远不会粘包。 粘包问题本质上就是接收方不知道消息的边界,不知道一次性该提取多少字节流用于解析消息,造成的消息解析错误问题。 二 为何么会有粘包问题 1 socket收发消息的原理之流式协议 ? 发送端可以是1K1K的发送 ...
分类:
其他好文 时间:
2021-06-25 17:27:19
阅读次数:
0
首先:Maven中央仓库的搜索全部公共jar包的地址是,http://search.maven.org/ Maven基础-默认中央仓库 当我们创建一个简单的Maven项目后(只需要在pom.xml配置好依赖),运行mvn clean install就可以把项目构建好,不需要我们手工下载任何jar,这 ...
分类:
其他好文 时间:
2021-06-25 17:25:52
阅读次数:
0
package main import ( "fmt" "time" ) var jobs chan int var results chan int func work(id int, jobs <-chan int, results chan<- int) { for i := range jo ...
分类:
其他好文 时间:
2021-06-25 17:24:48
阅读次数:
0
1. 当前连接会话数以及当前并发连接个数 -- 当前活跃用户会话数Select count(*) from v$session where status='ACTIVE' and USERNAME is not null;-- 当前活跃系统会话数Select count(*) from v$sess ...
分类:
数据库 时间:
2021-06-25 17:21:32
阅读次数:
0
# 方式一:文本编辑器的方式# with open('a.txt', mode='rt', encoding='utf-8') as f1:# res = f1.read()# data = res.replace('a1', 'b1')## with open('a.txt', mode='wt' ...
分类:
编程语言 时间:
2021-06-25 17:21:16
阅读次数:
0