码迷,mamicode.com
首页 >  
搜索关键字:elif    ( 966个结果
QT5 获取mac地址和cpu序列号
1 #include 2 #include 3 #include 4 #include 5 #include 6 7 #ifdef __GNUC__ 8 #include 9 #elif defined(_MSC_VER) 10 #if _MSC_VER >= 14...
分类:系统相关   时间:2016-01-05 23:54:58    阅读次数:1439
QT5 获取mac地址和cpu序列号
#include #include #include #include #include #ifdef __GNUC__#include #elif defined(_MSC_VER)#if _MSC_VER >= 1400#include #endif#else#error Only suppor...
分类:系统相关   时间:2016-01-05 21:00:16    阅读次数:408
Python条件循环
if语句:ifelifelse:Python中if语句的一半表现形式:1 if p_1:2 print('is 1')3 elif p_2:4 print('is 2')5 else:6 print('is 3')如果条件满足p_1将会输出is 1,如果条件不满足p_1满足p...
分类:编程语言   时间:2016-01-01 15:01:37    阅读次数:279
shell自动配置bond
#!/bin/bash #自动配置bond #byliuq MODPROBE="/sbin/modprobe" cd/etc/sysconfig/network-scripts if[-fifcfg-eth0] then cpifcfg-eth0/tmp/ifcfg-eth0.bak cpifcfg-eth1/tmp/ifcfg-eth1.bak ETH0=eth0 ETH1=eth1 elif[-fifcfg-em0] then cpifcfg-em1/tmp/ifcfg-em1.bak ..
分类:系统相关   时间:2015-12-25 19:28:31    阅读次数:206
分支与循环1
1. elif == else if ,或用elif可以减少程序判断次数,节省CPU资源 a. 如果多个并列的if,程序会每个都判断一次,如下图。这样比价浪费CPU资源num = int(input('输入一个整数:'))if num >= 90: print('成绩为A')if 80...
分类:其他好文   时间:2015-12-24 19:18:34    阅读次数:166
Python 基础【第八篇】变量
1.变量定义: 给数据进行命名,数据的名字就叫做变量 2.变量格式:[变量名] = [值](注:python变量中名称不能使用以下字符因为已经被Python内部引用and,as,assert,break,class,continue,def,del,elif,else,except,exec,Fal...
分类:编程语言   时间:2015-12-19 12:26:04    阅读次数:151
Haproxy启动脚本
脚本如下:#!/bin/sh #chkconfig2345on #description:HAProxyisaTCP/HTTPreverseproxywhichisparticularlysuitedforhighavailabilityenvironments. if[-f/etc/init.d/functions];then ./etc/init.d/functions elif[-f/etc/rc.d/init.d/functions];then ./etc/rc.d/init.d/functi..
分类:其他好文   时间:2015-12-18 14:53:11    阅读次数:207
Linux Shell脚本 之 条件判断
首先想到的就是if else条件判断语句了,下面给出一个全面的语句: if condition then condition is true execute all commands up to elif statement elif condition1 then con...
分类:系统相关   时间:2015-12-15 12:10:13    阅读次数:191
linux shell if
if用法: if [ ] ;then command; elif [ ] ;then command; else command fiif 参数:shell 编程中使用到得if语句内判断参数 –b 当file存在并且是块文件时返回真 -c 当file存在并且是字符文件时...
分类:系统相关   时间:2015-12-09 17:25:27    阅读次数:253
常用C/C++预处理指令详解
预处理是在编译之前的处理,而编译工作的任务之一就是语法检查,预处理不做语法检查。预处理命令以符号“#”开头。 常用的预处理指令包括:宏定义:#define文件包含:#include条件编译:#if、#elif、#ifndef、#ifdef、#endif、#undef错误信息指令:#error#li....
分类:编程语言   时间:2015-12-07 12:01:00    阅读次数:190
966条   上一页 1 ... 78 79 80 81 82 ... 97 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!