方法1:insert into A.dbo.users(field1,field2,field3) select * from B.dbo.users注:同一服务器,A和B为不同的数据库,如表中有自动标示,可先把自动标示取消,再执行。方法2:a.将数据库A中的表dbo.users复制到数据库B,需要...
分类:
数据库 时间:
2014-07-01 18:43:29
阅读次数:
204
前段时间因为项目需要获取页面加载的时间,就去看了下HTML5中的performane。之后用其写了一个小工具,用来获取详细的页面加载时间。GitHub上的地址是:https://github.com/CraryPrimitiveMan/performance-tool
分类:
Web程序 时间:
2014-07-01 10:41:08
阅读次数:
277
组件常用方法:BeginEdit:使DataGrid进入编辑状态。CancelEdit:取消DataGrid的编辑状态。CollapseRowGroup:闭合DataGrid的行分组。CommitEdit:确认DataGrid的编辑完成。ExpandRowGroup:展开DataGrid的行分组。G...
分类:
其他好文 时间:
2014-07-01 10:36:01
阅读次数:
612
用C语音编写python的扩展模块,也就是python调c库1.用C语言扩展Python的功能:http://www.ibm.com/developerworks/cn/linux/l-pythc/2.用C语言编写Python扩展模块:http://hi.baidu.com/jinmu190/blo...
分类:
编程语言 时间:
2014-07-01 10:28:46
阅读次数:
281
学习python时想要在gvim中配置python的编译环境,网上找到一个比较好用的vimrc配置,保存下来以备下次有需要。set encoding=utf-8set termencoding=utf-8set fileencodings=utf-8,chinese,latin-1if has("w...
分类:
Windows程序 时间:
2014-07-01 10:20:25
阅读次数:
1794
django模板系统学习笔记之for
在for标签里面,有以下知识点:
forloop.counter
forloop.counter0
forloop.first
forloop.last
forloop.revcounter
forloop.revcounter0
froloop.parentloop
empty
下面我们举例学习:
首先到我们的工程目录下,敲入:
pythonmanage.pyshell
#..
分类:
其他好文 时间:
2014-07-01 10:04:33
阅读次数:
223
可以检查参数,一直没注意这个语言特性,忽略了很多细节,感谢 vitrox
class Person( object ):
def __init__( self, name ):
if not isinstance( name, str ):
raise TypeError( '...' )
else:...
分类:
编程语言 时间:
2014-07-01 10:00:34
阅读次数:
181
#BintoDec
#myfirstpythonprograme
n=c=itm=0
a=raw_input(‘pleaseinputBinarynumber:\n‘)
forninrange(0,len(a)):
b=a[n:n+1]
#print‘nis‘,n
#print‘bis‘,b
#print‘len‘,len(a[n:])
ifb==‘1‘:
c=2**(len(a[n:])-1)
#print‘c1is‘,c
else:
c=0
#print‘cis0‘
itm=c+itm
#print‘it..
分类:
编程语言 时间:
2014-07-01 09:35:48
阅读次数:
226
Python 提取Twitter tweets中的元素...
分类:
编程语言 时间:
2014-07-01 09:20:10
阅读次数:
295