7
>>>import struct
>>>size_a = struct.calcsize('10s')
size_a = 10
>>>size_b = struct.calcsize('iii')
size_b = 12
>>>size_c = struct.calcsize('10siii')
size_c = 24
有人能告訴我爲什麼size_c是24
而非22
(10 + 12)?Python的struct.calcsize長度