摘要:
char * strcpyTest(char *dst,const char *src);Action(){ char *ptr=(char*)malloc(100); char a[]={"this is a string..."}; char * result=strcpyTest(ptr,a) 阅读全文
posted @ 2018-06-17 12:29
新美好时代
阅读(1175)
评论(0)
推荐(0)
摘要:
char *strchrTest(char * ptr,char c); Action(){ char str[]={"thisisadog"}; char c='s'; lr_output_message("%s",strchrTest(str,c)); return 0;}char *strch 阅读全文
posted @ 2018-06-17 12:28
新美好时代
阅读(271)
评论(0)
推荐(0)
摘要:
//int a[]={12,43,56,14,78,16,50,26,30,40};的中位数//按数据从小到大排序,如果是奇数个数字,则中间那个数字为中位数;如果是偶数个数字,则中间2个数字的平均值为中位数。 int getSortedArr(int * a,int len){ int i,j,te 阅读全文
posted @ 2018-06-17 12:27
新美好时代
阅读(383)
评论(0)
推荐(0)
摘要:
//求指定整数范围内的素数之和int getSumResult(int start,int end){ int i,j; int flag=0; int result=0; if(start<0||end <0) { lr_output_message("开始值、结束值需要为正整数"); exit( 阅读全文
posted @ 2018-06-17 12:27
新美好时代
阅读(480)
评论(0)
推荐(0)
摘要:
//求一个数的阶乘int getDigit(int num){ int i; long result=1; if(num<0) { lr_output_message("你输入的是负数,没有阶乘"); } else { for(i=1;i<=num;i++) { result *=i; } //lr 阅读全文
posted @ 2018-06-17 12:26
新美好时代
阅读(205)
评论(0)
推荐(0)
摘要:
#!/bin/bash read -p "input a dight:"echo REPLY DATE=`date`echo "DATE is {DATE}" USERS=`who |wc -l`echo "LOGIN in user is ${USERS}" UP=`date;uptime`e 阅读全文
posted @ 2018-06-17 11:10
新美好时代
阅读(215)
评论(0)
推荐(0)
摘要:
压缩解压缩命令介绍.gz 压缩为gzip文件.bz2 压缩为bzip2文件.tar 打包文件,将多个文件合并成一个目录.tar.gz 先打成tar包,再压缩为gzip文件.tar.bz2 先打成tar包,再压缩为bzip2文件.tar.Z 先打成tar包,再压缩为Z文件.rar压缩为rar文件 压缩 阅读全文
posted @ 2018-06-17 11:06
新美好时代
阅读(536)
评论(0)
推荐(0)
摘要:
1、firewalld的基本使用启动: systemctl start firewalld查看状态: systemctl status firewalld 停止: systemctl disable firewalld禁用: systemctl stop firewalld 2.systemctl是 阅读全文
posted @ 2018-06-17 11:04
新美好时代
阅读(179)
评论(0)
推荐(0)
摘要:
usermod-a|--append ##把用户追加到某些组中,仅与-G选项一起使用 -c|--comment ##修改/etc/passwd文件第五段comment -d|--home ##修改用户的家目录通常和-m选项一起使用 -e|--expiredate ##指定用户帐号禁用的日期,格式YY 阅读全文
posted @ 2018-06-17 11:03
新美好时代
阅读(356)
评论(0)
推荐(0)
摘要:
1.测试用例使用文本文件(TXT或者TSV文件)保存,使用制表符分隔数据。可以方便的使用任何文本编辑器,或者EXCEL编辑测试用例。也可以使用HTML格式创建用例。2.测试用例中支持变量使用,可以使用IF语句和FOR循环语句。3.可以利用“标签”功能对测试用例进行分类和有选择执行。4.支持关键字驱动 阅读全文
posted @ 2018-06-17 10:52
新美好时代
阅读(213)
评论(0)
推荐(0)
摘要:
1、请求携带参数的方式1、带数据的post data=字典对象2、带header的post headers=字典对象3、带json的post json=json对象4、带参数的post params=字典对象5、普通文件上传 files= files = {'file':open('filaname 阅读全文
posted @ 2018-06-17 10:50
新美好时代
阅读(185)
评论(0)
推荐(0)
摘要:
w3社区https://www.w3cschool.cn/python/ 易百教程https://www.yiibai.com/ http://www.cnblogs.com/yangxia-test/category/434045.htmlhttps://www.cnblogs.com/zheng 阅读全文
posted @ 2018-06-17 10:49
新美好时代
阅读(268)
评论(0)
推荐(0)