![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python 学习
goldenmice
这个作者很懒,什么都没留下…
展开
-
Python 读取二进制文件
<br />filename = raw_input('enter file name:')f=open(filename, 'rb')f.seek(0, 0)index = 0for i in range(0, 16): print "%3s" % hex(i),printfor i in range(0, 16): print "%-3s" % "#",printwhile True: temp = f.read(1) if len原创 2010-06-28 11:37:00 · 528 阅读 · 0 评论 -
Http client to POST using multipart/form-data
<br />import httplib, mimetypesdef post_multipart(host, selector, fields, files): """ Post fields and files to an http host as multipart/form-data. fields is a sequence of (name, value) elements for regular form fields. files is a s转载 2010-06-28 11:40:00 · 477 阅读 · 0 评论