码迷,mamicode.com
首页 >  
搜索关键字:shell memcache printf    ( 45225个结果)
c语言之在main中获取命令行的参数
#include<stdio.h> #include<iostream> int main(int argc,char *argv[]) { printf("参数的个数是(包括第0个当前可执行文件的名字):%d\n", argc); //参数列表,字符串指针 while (*argv) { puts ...
分类:编程语言   时间:2020-01-01 11:48:25    阅读次数:227
shell脚本实例
1.打印形状 1 #!/bin/bash 2 # 打印等腰三角形 3 read -p "Please input the length: " n 4 for i in `seq 1 $n` 5 do 6 for ((j=$n;j>i;j--)) 7 do 8 echo -n " " 9 done 1 ...
分类:系统相关   时间:2020-01-01 09:42:33    阅读次数:82
实验七
// 将file1.txt中小写字母转换成大写后,另存为file2.txt #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen("file1.txt ...
分类:其他好文   时间:2020-01-01 09:24:49    阅读次数:62
实验七
这里就放一下运行之后的文件变化。具体内部截图就不放了。 #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef s ...
分类:其他好文   时间:2019-12-31 23:45:37    阅读次数:74
Java: Concurrency
Executor Framework e.g. Runnable interface specifies a task to execute concurrently with other tasks. run() contains the task to perform. Executor Int ...
分类:编程语言   时间:2019-12-31 18:23:13    阅读次数:66
Django学习之缓存和信号
动态网站中,用户请求都要去服务器的数据库中增删改查,会消耗很大的资源,因此,使用缓存在减轻服务器的压力。缓存是将一些常用的数据保存内存或者memcache中,在一定的时间内有人来访问这些数据时,则不再去执行数据库及渲染等操作,而是直接从内存或memcache的缓存中去取得数据,然后返回给用户。Dja ...
分类:其他好文   时间:2019-12-31 17:05:15    阅读次数:95
strings.NewReader 与 bufio.NewReader
最近看golang bufio包时,有注意到strings.NewReader 与 bufio.NewReader这两个方法,那么这两个都是做什么用的呢? strings.NewReader 注意看这个方法的内容 string.NewReader 的参数是字符串,这个方法其实可以和os包中的Open ...
分类:其他好文   时间:2019-12-31 14:09:26    阅读次数:76
Linux下执行SQL文件
最近在使用MySQL数据库时,想要执行一些sql文件,就想到了source命令。 source介绍:source命令也称为“点命令”,也就是一个点符号(.),是bash的内部命令。 功能:使Shell读入指定的Shell程序文件并依次执行文件中的所有语句。 用法:source filename 或 ...
分类:数据库   时间:2019-12-31 12:28:28    阅读次数:282
Solve Perl Can't locate getopts.pl
前言 最近,使用Perl运行脚本出现问题 23333 Error Cause of error Solve the error Linux命令行输入“perl MCPAN e shell”进入perl界面,然后输入“install Perl4::CoreLibs”安装相应模块 ...
分类:其他好文   时间:2019-12-31 12:11:26    阅读次数:106
unable to execute ./start.sh: No such file or directory
刚编写的一个shell文件执行时突然遇到shell文件不能运行,一下子觉得奇了怪了,明明写的shell文件,而且添加了可执行权限,竟然提示这个结果:如下 尝试对文件的用vim打开该sh文件,输入:set ff ,显示fileformat=unix,说明没有问题(如果显示fileformat=dos, ...
分类:其他好文   时间:2019-12-31 12:11:01    阅读次数:84
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!