逻辑运算符例子某女要求 有房有车才可嫁$house = true;$car = true;if($house === true){ if ($car === true) { echo "嫁"; } else { echo "很遗憾,未能牵手...
分类:
Web程序 时间:
2015-08-04 00:25:22
阅读次数:
116
不解释。
#ifdef DEBUG // 调试状态, 打开LOG功能
#define MYLog(...) NSLog(__VA_ARGS__)
#else // 发布状态, 关闭LOG功能
#define MYLog(...)
#endif...
分类:
移动开发 时间:
2015-08-03 21:04:07
阅读次数:
177
The biggest mistake that you can make is to believe that you are working for somebody else. Job security is gone. The driving force of a career must c...
分类:
其他好文 时间:
2015-08-03 19:00:57
阅读次数:
103
17:14 [logc@a005.client.hadoop.qingdao.youku]$ a=117:14 [logc@a005.client.hadoop.qingdao.youku]$ if [[ $a =~ ^[0-9]+$ ]] ;then echo 'true'; else echo ...
分类:
系统相关 时间:
2015-08-03 18:29:47
阅读次数:
140
一、if语句:if(条件){ 循环体}其结果必须是一个boolean类型。二、if-else语句:if(条件){ 循环体}else(条件){ 循环体}三、do-while语句:do{ 循环体}while(条件);四、for循环语句:for(int i=i;i<num;i++)...
分类:
编程语言 时间:
2015-08-03 18:23:56
阅读次数:
125
#ifdef DEBUG# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);#else# define DLog(...)#en...
分类:
其他好文 时间:
2015-08-03 16:50:51
阅读次数:
109
HTML: JS:$('#select').change(function(){ var oV=$(this).find('option:selected').val(); if(oV==0){ //.......... }else if(oV==1){ //...........
分类:
Web程序 时间:
2015-08-03 16:15:02
阅读次数:
245
三元运算符:(expr)?'expr2':'expr3';例子给顶两个数,帮我找个较大的数$a = 15;$b = 10;$c = null;if ($a > $b) { $c = $a;}else{ $c =$b;}var_dump($c);输出结果:int 15三元运算:$c = $...
分类:
Web程序 时间:
2015-08-03 00:59:16
阅读次数:
166
一、Java分支语句类型if-else 语句switch关于if-esle语句可以拆分为三种if语句if(条件){语句块;}if-else语句if(条件语句){语句块;}if-else if语句if (条件语句1){语句块;}else if(条件语句2);{语句块2;}...else if(条件语句...
分类:
编程语言 时间:
2015-08-02 22:54:23
阅读次数:
188
1、安装Sublime Package Control
用Ctrl+~打开控制台并在里面输入以下代码:
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else N...
分类:
其他好文 时间:
2015-08-02 21:43:48
阅读次数:
164