码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
ruby初步学习中遇到的错误
print <<off This is the second way of creating here document ie. multiple line string; off报错: 原因: off前面有一个空格
分类:其他好文   时间:2014-12-02 22:17:00    阅读次数:150
python基础7(使用字符串)
一、字符串格式化,在%左侧放置一个字符串,右侧放置希望格式化的值。>>> format = 'Hello,%s,%s enough for ya?'>>> values = ('world','Hot')>>> print format % valuesHello,world,Hot enough ...
分类:编程语言   时间:2014-12-02 22:14:17    阅读次数:159
通过Lua彻底明白了回调函数
Lua回调函数实例 local m = {} local list = {name="hello",age=12} m.call_back_fun_print = function(printID) print(printID .. "-->" .. list[printID]) end m.add_list = function(key,value,call_back_fun)...
分类:其他好文   时间:2014-12-02 17:16:40    阅读次数:182
centos 安装,配置memcached
先查看是否已经安装了memcached输入memcached -h会输出memcached版本,或print phpinfo查看;memcached需要libevent支持,没有libevent,就先安装libeventyum install libevent-develmemcached安装可以采...
分类:系统相关   时间:2014-12-02 17:00:33    阅读次数:146
ACM-素数筛选
publicclasssushu{ publicstaticvoidmain(String[]args){ inti,m=1000; intcount=0; for(i=1;i<=m;i++){ if(prime(i)){ count++; System.out.print(i+""); if(count%10==0){ System.out.println(); } } } System.out.println();System.out.println("1-100..
分类:其他好文   时间:2014-12-02 15:27:49    阅读次数:156
判断是否是一元二次方程
-----判断是否是一元二次方程declare @a int,@b int,@c int,@x1 decimal(18,2),@x2 decimal(18,2)set @a=1set @b=5set @c=4if @a=0begin print '不是一元二次方程,因为a=0'endelsebegi...
分类:其他好文   时间:2014-12-02 15:07:21    阅读次数:236
python的windows开发环境搭建
1.在python官网下载python的安装包,区分32位和64位系统。2.安装后,默认是c盘,在windows环境变量中配置python的安装目录。3.配置后,在f盘建立一个文件夹learnpython,新建一个文件,helloword.py.4.编辑文件,写入代码:print ("Hello W...
分类:编程语言   时间:2014-12-02 15:05:21    阅读次数:153
一元二次方程存储过程
----一元二次方程存储过程alter proc yiyuanerci@a int,@b int,@c intasbegin if @a=0 begin --print '不是一元二次方程' return 1 end else begin declare @sqrt decimal(18,2)...
分类:其他好文   时间:2014-12-02 15:04:49    阅读次数:152
枚举超时
糖果问题枚举会导致超时的。。#includefloat mabs(float a){ if(aa[i+1]) { j=a[i+1];a[i+1]=a[i];a[i]=j; } } //printf("%d%d%d %d\n",a...
分类:其他好文   时间:2014-12-01 23:50:31    阅读次数:155
python基础
一、语法"Hello,world"开始看吧,我们学的很多语言都是从helloworld开始的,为什么呢,谁来回答一下。>>> 1 + 12>>> print 'Hello,world!'Hello,world!>>> x = 1>>> y =2>>> x + y31、注释和很多Unix脚本类似,Py...
分类:编程语言   时间:2014-12-01 23:45:40    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!