编程笔记

  • 2022“杭电杯”中国大学生算法设计超级联赛(8) 题解

    A. Theramore 考虑只对长度为3的子串进行操作,发现偶数位置的字符不会出现在奇数位置,奇数位置的字符不会出现在偶数位置。 对奇偶位置字符进行排序即可。 #include<bits/stdc++.h> using namespace std; co…

    编程笔记 2022年8月14日
  • JAVAweek7

    本周学习

    编程笔记 2022年8月14日
  • Linux 清空日志的五种方法

    第一种:cat /dev/null > filename 第二种:: > filename 第三种:> filename 第四种:echo "" > filename 第五种:echo > filename https://blog.csdn.net/m0_60126160/article/details/120815277

    智能运维 2022年8月14日
  • Linux应用编程之多次打开同一个文件

    同一个文件可以被多次打开,譬如在一个进程中多次打开同一个文件、在多个不同的进程中打开同一个文件。 一个进程内多次 open 打开同一个文件,那么会得到多个不同的文件描述符 fd ,同理在关闭文件的 时候也需要调…

    智能运维 2022年8月14日
  • c语言中函数声明和调用

      001、 #include <stdio.h> //以下为函数定义 int max2(int a, int b) // 该句称为函数头;int 表示函数返回类型; max2表示函数名; int a 和int b为形参声明。 { if(a > b) return a; //此处花括号内为…

    编程笔记 2022年8月14日
  • NC24870 [USACO 2009 Dec G]Video Game Troubles

    题目链接 题目 题目描述 Farmer John's cows love their video games! FJ noticed that after playing these games that his cows produced much more milk than usual, surely because contented cows make more m…

    编程笔记 2022年8月14日
  • 闭包和闭包的应用

    闭包//闭包:函数嵌套函数,内部函数就是闭包        //正常情况下,函数执行完成,内部变量就会被销毁(释放内存空间)        //闭包:内部函数没有执行完成,外部函数变量不会被销毁        function outerFun()…

    编程笔记 2022年8月14日
  • create GitHub Actions and publish GitHub Actions All In One

    create GitHub Actions and publish GitHub Actions All In One how to create your own GitHub Actions and publish it Create a JavaScript Action using TypeScript https://github.com/actions/typescript-acti…

    编程笔记 2022年8月14日
  • 自定义注解进行token校验(转载)

    (18条消息) SpringBoot自定义注解实现Token校验_李秀才的博客-CSDN博客_springboot 校验token

    编程笔记 2022年8月14日
  • 搭建 Webpack + TypeScript + Babel 的项目

    安装依赖包 首先把 webpack 相关的依赖安装了: npm i -D webpack webpack-cli 安装各个 loader: npm i -D ts-loader babel-loader source-map-loader 安装 babel 的核心: npm i -D @babel/core 安装 babel 的 pr…

    编程笔记 2022年8月14日