码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
PHP_输出缓存(output_buffering)的深入理解,边执行边输出
首先明确一下PHP的输出顺序 1.打开了php输出缓存:?echo,print -> php output_buffring -> server buffering -> browser buffering -> browser display 2.未打开php输出缓存:?echo,print -> server buffering ->...
分类:Web程序   时间:2014-11-27 13:03:06    阅读次数:193
Python中使用ctypes调用Windows API
# -*- coding: cp936 -*-import ctypesimport ctypes.wintypes#print(dir(ctypes))#print(dir(ctypes.wintypes))user32 = ctypes.WinDLL("user32.dll")FindWindo...
分类:编程语言   时间:2014-11-27 01:31:10    阅读次数:749
python 学习笔记之条件循环等语句
赋值语句普通赋值:>>> x,y,z = 1,2,3>>> print x,y,z1 2 3>>> x,y = y,x>>> print x,y2 1元组(序列)解包赋值:>>> a = (1,2,3)>>> x,y,z = a>>> x1字典赋值:>>> people = {"name":"cq"...
分类:编程语言   时间:2014-11-27 01:28:13    阅读次数:203
SQL sp_executesql【转】
execute相信大家都用的用熟了,简写为exec,除了用来执行存储过程,一般都用来执行动态Sqlsp_executesql,sql2005中引入的新的系统存储过程,也是用来处理动态sql的, 如:exec sp_executesql @sql, N'@count int out,@id varch...
分类:数据库   时间:2014-11-27 00:13:23    阅读次数:278
输入的整数反方向输出
#includeint main (){ int a; scanf("%d",&a); printf("%d",a); while(a) { printf("%d",a%10); a=a/10; }retur...
分类:其他好文   时间:2014-11-27 00:11:40    阅读次数:211
C语言九九乘法表!
#include int main(void){ int x,y; for(x=1;x<=9;x++){ for(y=1;y<=x;y++){ printf("%d*%d=%d ",x,y,x*y); } printf("\n"); }}
分类:编程语言   时间:2014-11-27 00:10:22    阅读次数:181
C语言百鸡百钱问题!
#include int main (void){ int a,b,c; for(a=0;a<=100;a++) for(b=0;b<=100;b++){ c=100-a-b; if(15*a+9*b+c==300) printf("鸡公数是:%-8d...
分类:编程语言   时间:2014-11-27 00:05:25    阅读次数:208
快速求素数
#include int main(){ int i,j,c=0; for(i=2;i<100;i++) { for(j=2;j<i;j++) { if(i%j==0) break; } if(j==i) { if(c%10==0) { printf('\n"); } printf("%6...
分类:其他好文   时间:2014-11-27 00:01:45    阅读次数:338
C语言判断是不是回文!
#include void main(){ int i=0; int wan,qian,shi,ge; do{ printf("请输入一个5位数:"); scanf("%d",&i); wan=i/10000; qian=(i/1000)%10; shi=(i...
分类:编程语言   时间:2014-11-26 23:54:15    阅读次数:250
python字典value为列表时遇到的问题
a = [1,2,3,4,5,5,5,5,5,5,5] c = set(a) c = list(c) b = {}.fromkeys(a,[0,0,0,0,0]) for x in c: b[x][0] = a.count(x) print b 猜猜会发生什么? 我猜python在执行程序的过程中,把a.count(x)当成一个常量来执行循环,把每个列表的第一个元素都变成了a.co...
分类:编程语言   时间:2014-11-26 22:39:15    阅读次数:331
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!