在struct的python文档中,使用了单词buffer而没有解释:
http://docs.python.org/library/struct.html
struct.unpack_from(fmt,buffer[,offset=0])
Unpack the buffer
according to the given format. The
result is a tuple even if it contains
exactly one item. The buffer must
contain at least the amount of data
required by the format
(len(buffer[offset:]) must be at least
calcsize(fmt)).
最佳答案