想知道 android.mk 及 Application.mk 中各变量的值可以通过新建如下两个.mk文件:PRINT_ANDROID_VARIABLE.mkPRINT_APPLICATION_VARIABLE.mk包含到android.mk文件中某位置:1 include $(LOCAL_PATH...
分类:
移动开发 时间:
2014-11-21 14:09:48
阅读次数:
377
#includevoid main(){int f1=1,f2=1,f3;int i;printf("%d %d ",f1,f2);for(i=1;i<=7;i++){f3=f1+f2;printf("%d ",f3);f1=f2;f2=f3;} return ;}/*f1=1;f2=1;f(n)=...
分类:
其他好文 时间:
2014-11-21 14:06:58
阅读次数:
119
之前一直通过echo,var_dump,print_r等将变量输出来调试PHP,效率奇低。而使用xdebug,就可以直接在IDE中调试PHP了。 安装xdebug 下载xdebug 请下载对应PHP版本的xdebug 1 2 3 wget wget http: //xdebug .org /f...
分类:
Web程序 时间:
2014-11-21 12:51:50
阅读次数:
293
1、客户端新建脚本[root@agent01~]#vi/usr/local/zabbix_agent/sbin/discovertcpport.sh
#!/bin/bash
portarray=(`netstat-tnlp|egrep-i"$1"|awk{‘print$4‘}|awk-F‘:‘‘{if($NF~/^[0-9]*$/)print$NF}‘|sort|uniq`)
#namearray=(`netstat-tnlp|egrep-i"$1"|awk{‘print$7‘}|awk-F‘..
分类:
系统相关 时间:
2014-11-21 00:07:40
阅读次数:
414
本函数是从可迭代对象来创建新字典。比如一个元组组成的列表,或者一个字典对象。例子:#dict()
#以键对方式构造字典
d1 = dict(one = 1, two = 2, a = 3)
print(d1)
#以映射函数方式来构造字典
d2 = dict(zip(['one', 'two', 'three'], [1, 2, 3]))
print(d2)
#可迭代对象方式来构造字典
d3 =...
分类:
编程语言 时间:
2014-11-20 22:01:50
阅读次数:
184
#include int main(){ int a,b; printf("请输入a="); scanf("%d",&a); printf("请输入b="); scanf("%d",&b); a^=b^=a^=b; printf("a=%d,b=%d\n",a,b); return 0;}
分类:
其他好文 时间:
2014-11-20 21:38:32
阅读次数:
244
加入头文件
#include <android/log.h>
函数
__android_log_print(ANDROID_LOG_INFO,LOG_TAG,TITLE)
第一个参数ANDROID_LOG_INFO(还有ANDROID_LOG_ERROR等),表示什么类型
的输出,上面的函数相当于android的j...
分类:
移动开发 时间:
2014-11-20 20:31:01
阅读次数:
146
#include unsigned int m(unsigned int x,unsigned int n);int main(void){ int x,n,a; printf("请输入无符号整数和右移循环次数\n"); scanf("%d%d",&x,&n); a=m(x,n); printf("...
分类:
其他好文 时间:
2014-11-20 20:06:34
阅读次数:
162
#include int main(){ int i,a,b=1,c=1; printf("请输入一组数字:\n"); scanf("%d",a); for(;;i++) { b=a/(c*10); printf("反序数组=%d\n",((a-b*10*c)/c)); if(0==b) br...
分类:
其他好文 时间:
2014-11-20 20:02:23
阅读次数:
120