struct补充
import struct import json header_dic={'total_size':123123, 'filename':None, 'md5':None} header_json=json.dumps(header_dic) header_bytes=header_json.encode('utf-8') # print(header_bytes,type(header_bytes)) print(len(header_bytes))
struct补充
import struct import json header_dic={'total_size':123123, 'filename':None, 'md5':None} header_json=json.dumps(header_dic) header_bytes=header_json.encode('utf-8') # print(header_bytes,type(header_bytes)) print(len(header_bytes))
相关文章: