Alex and Lee play a game with piles of stones. There are an even number of piles arranged in a row, and each pile has a positive integer number of sto ...
分类:
其他好文 时间:
2021-04-10 13:23:44
阅读次数:
0
public class Demo { public static void main(String[] args) { System.out.println(Contains1("abfadawdawdawd", ".*daw.*")); System.out.println(Contains2( ...
分类:
其他好文 时间:
2021-04-10 13:19:37
阅读次数:
0
f-string想必作为Python3.6版本开始引入的特性,通过它我们可以更加方便地向字符串中嵌入自定义内容,但f-string真正蕴含的功能远比大多数用户知道的要丰富,今天我们就来一起get它们~ 最基础用法 f-string最基础的用法很简单,如下例所示,在前缀f的字符串中向{}内直接填入要嵌 ...
分类:
编程语言 时间:
2021-04-10 13:11:50
阅读次数:
0
描述 原地翻转给出的数组 nums 原地意味着你不能使用额外空间 样例 样例 1: 输入 : nums = [1,2,5] 输出 : [5,2,1] class Solution: """ @param nums: a integer array @return: nothing """ def r ...
分类:
编程语言 时间:
2021-04-10 13:11:25
阅读次数:
0
描述 给一个数组 nums 写一个函数将 0 移动到数组的最后面,非零元素保持原数组的顺序 1.必须在原数组上操作 2.最小化操作数 样例 例1: 输入: nums = [0, 1, 0, 3, 12], 输出: [1, 3, 12, 0, 0]. 例2: 输入: nums = [0, 0, 0, ...
分类:
移动开发 时间:
2021-04-10 13:09:55
阅读次数:
0
package test; public class test1 { public static void main(String args[]){ //使用for循环计算1-100的和,除了以3结尾的那些数 int sum = 0; for(int x = 1;x<=100;x++){ if(x% ...
分类:
其他好文 时间:
2021-04-10 13:09:10
阅读次数:
0
public static void LogToFile(string LogFilePath, string LogFileName, string doWhat, string msg) { string stmp = "时间:" + DateTime.Now.ToString("yyyy-MM ...
分类:
其他好文 时间:
2021-04-10 12:59:29
阅读次数:
0
//获取当前运行程序上一级目录PDF文件夹 private string txtPath = System.AppDomain.CurrentDomain.BaseDirectory + "PDF\\"; //如果该文件下没有PDF文件夹就创建该文件夹 if (!Directory.Exists(t ...
分类:
其他好文 时间:
2021-04-10 12:52:27
阅读次数:
0
改变原数组方法 splice() : 返回删除项组成的数组 sort() reverse() fill() : 初始化数组 例如:new Array(26).fill(0) pop() push() shift() unshift() 不改变原数组方法 slice(begin ? ,end ?) : ...
分类:
编程语言 时间:
2021-04-09 13:42:08
阅读次数:
0
获取 itextsharp 包 files 图片文件路径列表 pdfFileName 输出的 pdf文件 public bool MergeFileToPDF(List<string> files,string pdfFileName) { iTextSharp.text.Document docu ...