- 博客(2)
- 收藏
- 关注
转载 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
原创 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
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人