Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- # Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
- import sys
- import struct
- dct = [n[0] for n in struct.iter_unpack("h", sys.stdin.buffer.read())]
- dct = eval(sys.argv[1])
- for n in dct:
- sys.stdout.buffer.write(struct.pack("h", n))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement