2

php code

$body = unpack("Lcmd/Lstatus/a*username", $body_string);

I want use python code replace this line. how to do?

struct.error: unpack requires a string argument of length 17

cnt = unpack('LLs', body_string) 
Jon
  • 4,746
  • 2
  • 24
  • 37
Chao Guan
  • 39
  • 3

0 Answers0