摘要:
一般我们采取分块处理,一次处理固定大小的块。 1 def read_in_chunks(file_obj,chunk_size): 2 """Lazy function (generator) to read a file piece by piece""" 3 while True: 4 ... 阅读全文
posted @ 2015-06-10 14:15
foo__hack
阅读(491)
评论(0)
推荐(0)
摘要:
比如255的16进制是FF。转换成整型就是 int("FF",16) console上输出就是255 int("FFFF",16)就是65535如果是C语言在字符串里面放入二进制的值并编入内存可以这样 char hex[] = "\x3C\xFF\xB0" 一般我们接触过底层的可以用这样写入机... 阅读全文
posted @ 2015-06-10 14:11
foo__hack
阅读(341)
评论(0)
推荐(0)

浙公网安备 33010602011771号