|
我近日遇到了这种语句
class A(Structure):
_fields_=[("a", cubyte),("b", c_ushort)]
def __new__(self,socket_buffer=None):
return self.from_buffer_copy(socket_buffer)
说这样做可以像c语言一样给这个类的对象所占缓冲区赋值
什么意思,而且我运行时出错:
'tuple' does not support the buffer interface
谁帮忙解答一下,多谢
|
|