1. find . -regex '.*\.c\|.*\.cc' | xargs grep "string" --color --line-number 2. sed -n '5,10p' filename 查看文件的第5行到第10行。 3. grep -o hello test.log | wc ...
分类:
其他好文 时间:
2021-04-27 15:16:42
阅读次数:
0
二叉树的三种遍历方式(递归)先根中根后根 二叉树的三种遍历方式(递归) 先根 1void preOrder(BinTree tree){2 if(tree == NULL){3 return ;4 }5 visit(tree);6 preOrder(tree->leftNode);7 preOrde ...
分类:
其他好文 时间:
2021-04-27 15:06:19
阅读次数:
0
c语言 4-20 为九九乘法表增加横纵标题。 1、for语句二层循环 #include <stdio.h> int main(void) { int i, j; printf(" |"); for (i = 1; i <= 9; i++) { printf("%3d", i); } putchar( ...
分类:
编程语言 时间:
2021-04-27 15:05:59
阅读次数:
0
#include <iostream> #include <algorithm> #include <cstdio> using namespace std; const int N = 2e5 * 20; int a[N], b[N], root[N]; struct President_Tree ...
分类:
其他好文 时间:
2021-04-27 15:01:57
阅读次数:
0
#include <bits/stdc++.h> typedef unsigned long long ll; const ll P=1331; using namespace std; ll hash1[1000000],u[1000000]; ll get(int l,int r){ retur ...
分类:
其他好文 时间:
2021-04-27 15:00:27
阅读次数:
0
1.基本if语句 Python的写法 If条件: 条件满足 Else: 条件不满足时 案例:话费计算 #计算话费 #(1)输入通话的秒数 n = input("请输入通话秒数:") #(2)将通话的秒数转换成分钟 n = int(n) if n < 0: print("请输入正确的秒数") exit ...
分类:
编程语言 时间:
2021-04-27 14:57:59
阅读次数:
0
1.在root权限下登录mysql 2.进入mysql库 mysql>use mysql 3.查看root用户权限 mysql>select User,Host,plugin from user; 4.将root用户的auth_sock改为mysql_native_password mysql>up ...
分类:
数据库 时间:
2021-04-27 14:42:37
阅读次数:
0
Master配置 global_defs { notification_email { root@localhost } notification_email_from keeplived@localhost smtp_server 127.0.0.1 smtp_connect_timeout 30 ...
分类:
其他好文 时间:
2021-04-27 14:42:00
阅读次数:
0
1.安装依赖npm install --save-dev stylelint stylelint-scss stylelint-config-standard stylelint-csstree-validator stylelint-config-prettier 2.安装插件stylelint ...
分类:
其他好文 时间:
2021-04-27 14:36:39
阅读次数:
0
03-树3 Tree Traversals Again (25 分) An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that ...
分类:
其他好文 时间:
2021-04-27 14:18:22
阅读次数:
0