07 2013 档案
摘要:CS_VREDRAW:当窗口水平方向的宽度变化时重绘整个窗口CS_HREDRAW:当窗口垂直方向的宽度变化时重绘整个窗口CS_DBLCLKS:指针在属于此类的窗体内部,并且用户双击时,收到一个双击消息到窗体程序CS_OWNDC:为此类中的每一个窗体分配唯一的设备环境CS_CLASSDC:分配一个设备环境并被类中的所有窗体共享CS_PARENTDC:设置子窗口中剪下的矩形到父窗体中,以使子窗体可以在父窗体上绘图CS_NOCLOSE:关闭按钮不可用CS_SAVEBITS:保存被此类的一个窗体遮住的屏幕图像的一部分为位图CS_BYTEALIGNCLIENT:在字节边界(在X方向)上对齐窗体的客户区,
阅读全文
posted @ 2013-07-29 10:01
预见者
摘要:importpymssqlclassMSSQL:"""对pymssql的简单封装pymssql库,该库到这里下载:http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql使用该库时,需要在Sql Server Configuration Manager里面将TCP/IP协议开启用法:"""def__init__(self,host,user,pwd,db):self.host=hostself.user=userself.pwd=pwdself.db=dbdef__GetConnect(se
阅读全文
posted @ 2013-07-23 22:20
预见者
摘要:pymssql methodsset_max_connections(number)-- Sets maximum number of simultaneous database connections allowed to be open at any given time. Default is 25.get_max_connections()-- Gets current maximum number of simultaneous database connections allowed to be open at any given time.Connection(pymssqlCn
阅读全文
posted @ 2013-07-23 22:19
预见者
摘要:先来一个简单的例子吧:?12345678910importMySQLdbtry:conn=MySQLdb.connect(host='localhost',user='root',passwd='root',db='test',port=3306)cur=conn.cursor()cur.execute('select * from user')cur.close()conn.close()exceptMySQLdb.Error,e:print"Mysql Error %d: %s"%(e.ar
阅读全文
posted @ 2013-07-23 22:09
预见者
摘要:The following identifiers are used as reserved words, orkeywordsof the language, and cannot be used as ordinary identifiers. They must be spelled exactly as written here:False class finally is returnNone continue for lambda tryTrue def from ...
阅读全文
posted @ 2013-07-23 21:53
预见者

浙公网安备 33010602011771号