一、通过read 接收 1. 通过vim 定义一个test.sh的脚本 vim test.sh 2. 编写shell脚本 #! /bin/bash read name echo "$name It is a test" 3. 添加脚本执行权限 chmod +x test.sh 4. 执行脚本 [ro ...
分类:
其他好文 时间:
2021-02-18 13:13:07
阅读次数:
0
题目描述 For this problem, you will write a program that reads in a sequence of 32-bit signed integers. After each odd-indexed value is read, output the m ...
分类:
其他好文 时间:
2021-02-18 13:06:04
阅读次数:
0
知识梳理 //1 for循环主要是 计数的 //2 while循环可以支持 更复杂的判断 [ 我爱你小案例 ] //3 continue 退出本次循环 剩下的继续执行 //4 break 直接结束循环 一 while语法 1)基本语法 //while 当...的时候 var num = 1;//定义 ...
分类:
其他好文 时间:
2021-02-17 14:42:17
阅读次数:
0
While和Do..while循环结构 while(布尔表达式){ //循环内容} 只要布尔表达式为true,循环就会一直执行下去 大多数情况下会让循环停止下来,我们需要一个让表达式失效的方式来结束循环 少数情况需要循环一直进行,比如服务器的请求响应监听 循环条件一直为true就会造成无限循环【死循 ...
分类:
编程语言 时间:
2021-02-17 14:18:15
阅读次数:
0
背景 Read the fucking source code! --By 鲁迅 A picture is worth a thousand words. --By 高尔基 说明: KVM版本:5.9.1 QEMU版本:5.0.0 工具:Source Insight 3.5, Visio 文章同步在 ...
分类:
系统相关 时间:
2021-02-16 12:27:04
阅读次数:
0
1.open/close 函数原型: int open(const char *pathname,int flags); int open(const char *pathname,int flags,mode_t mode); 参数: pathname:文件名 flags: 必选项:O_RDONL ...
分类:
系统相关 时间:
2021-02-16 12:02:12
阅读次数:
0
jq Bash, unfortunately, doesn’t ship with a command that can work with JSON natively. In this lesson, we’ll learn how to read and do basic queries on ...
分类:
Web程序 时间:
2021-02-15 12:41:34
阅读次数:
0
CF1480A Yet Another String Game Problem 给出一个字符串,两人轮流操作,每次操作可以将一个字符改为另外一个字符,当不可以不改动,先手目标是让最终字符串字典序最小,后手目标相反,求最终字符串。 Sol 贪心地模拟即可。 #define in read() int ...
分类:
其他好文 时间:
2021-02-15 12:23:09
阅读次数:
0
pom.xml报错:Failed to read artifact descriptor for xxxxxx.jar问题的解决方法 ...
分类:
编程语言 时间:
2021-02-15 12:05:54
阅读次数:
0
package main import ( "bufio" "fmt" "io" "log" "os" "os/exec" // "strings" ) func checkExe2(exeAdress string) { cmd := exec.Command("cmd.exe", "/c", " ...
分类:
其他好文 时间:
2021-02-09 12:32:53
阅读次数:
0