上一页 1 2 3 4 5 6 7 8 ··· 17 下一页
摘要: Python具有强大的扩展能力,以下列出了50个很棒的Python模块,包含几乎所有的需要:比如Databases,GUIs,Images, Sound, OS interaction, Web,以及其他。推荐收藏。Graphical interface wxPython http://wxpython.org Graphical interface pyGtk http://www.pygtk... 阅读全文
posted @ 2011-07-29 12:46 网络小虫 阅读(1662) 评论(0) 推荐(0) 编辑
摘要: import pyodbcconnection = pyodbc.connect('DRIVER={SQL Server};SERVER=localhost;DATABASE=Mide12;UID=sa;PWD=google)cur = connection.cursor()cur.execute("select * from XTSysRight")for row in cur: print '... 阅读全文
posted @ 2011-07-22 10:51 网络小虫 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 1.下载安装 a) Python 2.7.0 安装到E:\Python27后,path环境变量加上 ;E:\Python27;E:\Python27\Scripts b)Scons-2.0.1.win32.exe http://sourceforge.net/projects/scons/files/scons/2.0.1/scons-2.0.1.win32.exe/download 安装时,会... 阅读全文
posted @ 2011-07-11 22:03 网络小虫 阅读(2762) 评论(0) 推荐(0) 编辑
摘要: 默认情况下,mysql安装是没有启用日志管理,这为后续的维护带来很多不便的地方。 以下是配置的整个过程编辑my.ini,找到[msqld]部分,加入以下命令[mysql]log="E:/mysqllog/mysql.log" 重启mysql mysql> show variables like "log%";+---------------------------------+----------... 阅读全文
posted @ 2011-07-04 16:12 网络小虫 阅读(11062) 评论(1) 推荐(0) 编辑
摘要: 1。启用二进制日志 更改my.ini 找到[mysqld]部分,输入以下命令 #启用二进制日志 server-id = 1 log-bin = e:/mysqlbin/binlog.log log-bin-index = e:/mysqlbin/binlog.index 重启mysql mysql> show variables like "log_%"; +-------------------... 阅读全文
posted @ 2011-07-04 16:10 网络小虫 阅读(4018) 评论(0) 推荐(1) 编辑
摘要: 根据http://www.phpvim.net/web/javascript/ean-13-barcode-check-digit.html所写1.12 位数字从左至右,分别计算奇数位以及偶数位之和2.求奇数位之和3.求偶数位之和,结果乘以 34.第 2、3 步,2 个计算结果相加5.第 4 步的结果取个位数,用 10 减去个位数得到的数字,即是校验码6.第 5 步个位数为 0 的话,校验码也是 0lcBarCode = "123456789012"lnLen = Len(lcBarCode)s1 = 0s2 = 0For n=1 To lnLen If n%2 =1 s1 阅读全文
posted @ 2011-06-30 20:38 网络小虫 阅读(3021) 评论(0) 推荐(0) 编辑
摘要: 原地址:http://406625590.blog.163.com/blog/static/33530597201010262292599/ 解决方法: 方法1: 在运行框中输入 regsvr32 /i shell32.dll,执行。方法2: 上面的方法不行的话, 再使用此方法 方法2、将下面内容保存成扩展名为reg文本文件,双击执行 [HKEY_LOCAL_MACHINE\SOFTWARE\M... 阅读全文
posted @ 2011-06-29 15:31 网络小虫 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 1.打开vs 安装目录下的oleview.exe,菜单File->View TypeLib,选择需要的com文件(xxx.dll 或者xxx.ocx),弹出ITypeLib Viewer,如下图所示 2.选择菜单File->Save as...,保存XXXX.idl文件 3使用midl.exe 编译出xxx.h文件 midl /h myhead.h xxx.IDL 4.接下来就可以在vc里面直接引... 阅读全文
posted @ 2011-06-29 15:29 网络小虫 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 简明 Python 教程 http://sebug.net/paper/python/apbs03.html 阅读全文
posted @ 2011-06-28 23:42 网络小虫 阅读(238) 评论(0) 推荐(0) 编辑
摘要: import urllibimport osprint "downding..."url='http://www.dianzhu.net/loadimage.php?itemid=134208'urllib.urlretrieve(url,"test2.png")os.system("test2.png")print "done" 阅读全文
posted @ 2011-06-28 23:39 网络小虫 阅读(277) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 17 下一页