摘要: #反转过程def add(x,y): return x+yparams = (1,2)add(*params)#3def story(**kwds): return 'Once upon a tinme,there wa s '\ '%(job)s called %(name)s' %kwsdef power(x,y,*others): if others: print 'Received redundat parameters:',others return pow(x,y)def interval(start,stop=None,... 阅读全文
posted @ 2013-06-29 21:19 我叫龙弟弟 阅读(167) 评论(0) 推荐(0)
摘要: #callback 判断是否存在import matchx = 1y = math.sqrtcallable(x)#Falsecallable(y)#True#函数def fib(num): result = [0,1] for i in range(num-2): result.append(result[-2],result[-1]) return result;fibs(10)#[0,1,1,2,3,5,8,13,21,34]#函数文档def square(x): 'Calcutates the square of the number x'... 阅读全文
posted @ 2013-06-29 20:22 我叫龙弟弟 阅读(193) 评论(0) 推荐(0)
摘要: 经典SQL语句大全一、基础1、说明:创建数据库CREATE DATABASE database-name2、说明:删除数据库drop database dbname3、说明:备份sql server---创建 备份数据的deviceUSE masterEXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwind_1.dat'---开始 备份BACKUP DATABASE pubs TO testBack4、说明:创建新表create table tabname(col1 typ 阅读全文
posted @ 2013-06-29 09:20 我叫龙弟弟 阅读(169) 评论(0) 推荐(0)