Rezzo Blog

K-ON!

[bat]批量删除空目录

@echo off for /f "tokens=*" %%i in ('dir/s/b/ad^|sort /r') do rd "%%i" 批量删除空目录

[Bat] bat脚本实现文件批量重命名操作

批量删除相同前缀 @echo off title 批量删除前缀名 echo. echo 本批处理可批量删除前缀名 echo. echo.&set /p strtemp3= 请输入要删除前缀的文件类型: echo.&set /p strtemp2= 请输入要删除的前缀字符串: setlocal enabledelayedexpansion for /f

C# 常用排序算法实现

theme: vuepress 图出处:Leetcode图解算法数据结构 平均时间复杂度O(n^2) 下面排序算法中用到的Swap函数 public void Swap(int[] arr, int a, int b) { // 不能同一个变量,异

C# IComparable 和 IComparer

using System; using System.Collections.Generic; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { Student stu1 = new Student(8, "c"); Student stu2 = new Student(10, "a"); Student stu3 = new Student(24, "b"); List<Student> list = new List<Student>(); list.Add(stu3); list.Add(stu2); list.Add(stu1); foreach(Student stu in list) { Console.WriteLine($"name: {stu.name}; age: {stu.age}"); } Console.WriteLine(&

Git SSH 配置

1.查看是否配置过密匙 cd ~/.ssh 不加cd,就是看存不存在 .ssh 文件夹 加cd,如果存在这个文件夹,就直接跳转到这个文件夹 如果不存在这个文件夹,会显示 No such