python: integer out of range for 'L' format code
问题 In python, the code is the following envimsg = struct.pack("!LHL", 1, 0, int(jsonmsg["flow_id"], 16)) + \ struct.pack("!HQH", 1, int(flow["src id"],16), 0) + \ struct.pack("!HQH", 1, int(flow["dst id"],16), int(flow["dst port"],16)) + \ struct.pack("!H", 0) + \ struct.pack("!HHHLL", int(jsonmsg["app_src_port"],10), int(jsonmsg["app_dst_port"],10), int(jsonmsg["app_proto"],10), int(jsonmsg["app_src_ip"],10), int(jsonmsg["app_dst_ip"],10)) at the line struct.pack("!H", 0) + \ I encounter this