Advertisement
Guest User

dcttransform.py

a guest
Nov 23rd, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. # Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
  3. import sys
  4. import struct
  5. dct = [n[0] for n in struct.iter_unpack("h", sys.stdin.buffer.read())]
  6. dct = eval(sys.argv[1])
  7. for n in dct:
  8.     sys.stdout.buffer.write(struct.pack("h", n))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement