
Python
xueok
About
I am xuegang,Yin.I work in Cangzhou City,Hebei Province of China. A software engineer.After graduated to HeBei Engineering And Technical College in 2000,I have developed many database client-server application using delphi,c buider.Now I am using
展开
-
Python给文件生成MD5码
import md5import sysdef sumfile(fobj): m = md5.new() while True: d = fobj.read(8096) if not d: break m.update(d) return m.hexdigest()def md5sum(fname):原创 2009-01-12 17:20:00 · 2560 阅读 · 0 评论 -
Python调用DLL操作抄表机
# -*- coding: GBK -*-from ctypes import *dll = windll.LoadLibrary(JBA188.dll)a = dll.test()print 测试设备连接状态%s % asrcName = c_char_p("publish_pd.bin")decName = c_char_p(d://publish_pd.bin)b = dll.u原创 2009-01-12 17:13:00 · 662 阅读 · 0 评论 -
Python读写文件
# Filename: using_file.pypoem = Programming is funWhen the work is doneif you wanna make your work also fun:use Pythonf = file(poem.txt, w)f.write(poem)f.close()f = file(poem.txt)print fwh原创 2009-01-12 17:24:00 · 967 阅读 · 0 评论