Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import fractions
- import os
- import sys
- import time
- os.system('cls' if os.name == 'nt' else 'clear')
- with open(sys.argv[1]) as a:
- b = fractions.Fraction(a.read())
- while True:
- b = 256*b
- c = int(b)
- sys.stdout.write(chr(c))
- if c == 10:
- time.sleep(1)
- b = b - c
Advertisement
Add Comment
Please, Sign In to add comment