只要比别人掌握更多的性能优化方案,你就比别人更有竞争力项目越大,对性能要求越高企业级项目标配大厂项目,性能永远是第一需求没有做性能优化的项目,都不是企业级的中高级开发者能力标准懂性能才能对技术更理解不懂性能优化,永远成不了高级工程师每一个技术,背后的原理一定和性能有关联 教程介绍 我们常说性能永远是 ...
分类:
其他好文 时间:
2021-06-02 11:35:55
阅读次数:
0
查空行 awk '/^$/{print NR}' demo1.txt 求某一列的和 awk '{sum+=$2} END {print "求和:"sum}' demo2.txt 数字排序 sort -n -t ' ' -k 2 demo3.txt sort -t ' ' -k 2nr demo3.t ...
分类:
系统相关 时间:
2021-06-02 11:35:11
阅读次数:
0
语法示例: while 条件为真 do echo ok done #!/bin/bash while true do echo ok done while循环数字 #!/bin/bash a=1 b=9 while [ $a -lt 10 ] do sum=$((a + b)) echo $a + ...
分类:
系统相关 时间:
2021-06-02 11:02:44
阅读次数:
0
任务1#include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a ...
分类:
其他好文 时间:
2021-06-02 10:47:49
阅读次数:
0
题目 题目链接:https://codeforces.com/contest/1528/problem/D 一张 \(n\) 个点 \(m\) 条边的有向图,第 \(i\) 条边为 \((u_i,v_i,d_i)\)。每一秒所有边到达的点的编号都会加一,也就是第 \(c\) 秒时,第 \(i\) 条 ...
分类:
其他好文 时间:
2021-05-25 18:22:08
阅读次数:
0
一、总和 i = 1 sum = 0 while i <= 100: sum += i i += 1 print(sum) 二、奇数和 i = 1 sum = 0 while i <= 100: if i % 2 != 0: sum += i i += 1 print(sum) 三、偶数和 i = ...
分类:
编程语言 时间:
2021-05-25 18:19:09
阅读次数:
0
define连接字符串 #define conn(x,y) x##y,连接x与y #define toString(x) #x,将x变成字符串 #include <stdio.h> #define conn(x,y) x##y #define toChar(x) #x int main(void) ...
分类:
其他好文 时间:
2021-05-25 18:17:24
阅读次数:
0
for i in range(100, 1000): if str(i) == str(i)[::-1]: print(i) # 输出结果 101 111 121 131 141 151 161 171 181 191 202 212 222 232 242 252 262 272 282 292 ...
分类:
编程语言 时间:
2021-05-25 18:16:06
阅读次数:
0
C++ 获取GUID #include <objbase.h> #include <stdio.h> //--生成GUID const char* newGUID() { static char buf[64] = {0}; GUID guid; if (S_OK == ::CoCreateGuid ...
分类:
编程语言 时间:
2021-05-25 18:10:12
阅读次数:
0
public class ForDemo2 { public static void main(String[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= i; j++) { System.out.print(i+ "*" ...
分类:
其他好文 时间:
2021-05-25 17:50:06
阅读次数:
0