RosettaCodeData/Task/Bitwise-IO/Python/bitwise-io-3.py
2023-07-01 13:44:08 -04:00

9 lines
168 B
Python

import sys
import bitio
r = bitio.BitReader(sys.stdin)
while True:
x = r.readbits(7)
if not r.read: # nothing read
break
sys.stdout.write(chr(x))