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补充

相关文章:

  • 2022-12-23
  • 2021-10-09
  • 2021-09-19
  • 2022-12-23
  • 2022-02-07
  • 2022-03-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-21
  • 2022-01-30
  • 2022-02-11
  • 2022-02-25
  • 2021-10-16
相关资源
相似解决方案