使用 DirectoryInfo 的 GetFiles 提取文件,提取多种文件 1. DirectoryInfo di = new DirectoryInfo(filePath); FileInfo[] afi = di.GetFiles("*.dat"); 或者 FileInfo[] afi = ...
分类:
其他好文 时间:
2021-05-24 16:47:16
阅读次数:
0
问题 nginx日志默认记录在一个文件access.log中,时间长了会导致日志文件特别大,甚至磁盘占满。 解决方案 使用以下方法,将access.log文件每天一个,然后清过15天以前的文件。 方法 创建clearNginxLog.sh文件 #!/bin/bash LOG_PATH="/data/ ...
分类:
其他好文 时间:
2021-05-24 16:43:57
阅读次数:
0
jmeter简介: 1.为什么要使用jmeter 开源,免费,基于java编写,可集成到其他系统可扩展各个功能插件。 支持接口测试,压力(负载和压力)测试等多种功能,支持录制回放。 入门简单 相较于自己编写框架和其他开源工具,有较为完善的UI界面,便于接口测试 多平台支持,可在Linux,Windo ...
分类:
其他好文 时间:
2021-05-24 16:43:12
阅读次数:
0
有一个棋盘,每次你可以选相邻的两个位置都加一。
问你最少要多少次操作才能让棋盘上的数都变成一样的,如果不能就输出 -1。 ...
分类:
其他好文 时间:
2021-05-24 15:59:03
阅读次数:
0
常用方法: 用之前确保导入了驱动包啊! selectSingleNode(); // selectNodes(); //以上两个函数都是Domument文档对象调用的 ...
分类:
其他好文 时间:
2021-05-24 15:53:11
阅读次数:
0
本部分提供了概述,关于RESTful服务在GeoServer中是如何工作的。 https://docs.geoserver.org/stable/en/developer/programming-guide/rest-services/index.html Overview GeoServer us ...
分类:
其他好文 时间:
2021-05-24 14:54:39
阅读次数:
0
public class WeatherUtil { private static final Logger LOGGER = LoggerFactory.getLogger(WeatherUtil.class); public static String doGet(String path){ S ...
分类:
其他好文 时间:
2021-05-24 14:15:35
阅读次数:
0
老规矩,先上代码 #date:2021-5-17 #author:Linuas #b站:会武术的白猫 import copy def Dijkstra(network,s,d):#迪杰斯特拉算法算s-d的最短路径,并返回该路径和代价 #print("Start Dijstra Path……") pa ...
分类:
编程语言 时间:
2021-05-24 14:13:38
阅读次数:
0
题目 给定一个序列,给出最大子序列的和。 解答 public class maxSubSum { public static int maxSubSum1(int [] a){ int maxSum = 0; for (int i = 0; i < a.length; i++) { for(int ...
分类:
编程语言 时间:
2021-05-24 14:09:52
阅读次数:
0
#include <iostream> #include <cstring> #include <cmath> using namespace std; using ll=long long ; const int maxn=1e3+10; int dp[maxn][maxn]; int sum[m ...
分类:
其他好文 时间:
2021-05-24 13:59:03
阅读次数:
0