Facebook
From twĂłj stary, 2 Months ago, written in Python.
Embed
Download Paste or View Raw
Hits: 28
  1. import sys
  2. from time import sleep
  3.  
  4. bts = [
  5.     [46, 111, 46],
  6.     [46, 111, 45],
  7.     [46, 111, 47],
  8.     [46, 111, 45],
  9.     [46, 111, 46],
  10. ]
  11.  
  12. q = 0
  13. q_max = len(bts)
  14.  
  15. while True:
  16.     sys.stdout.write("t" + bytearray(bts[q]).decode('utf-8') + 'r')
  17.     if q == 2:
  18.         sleep(0.5)
  19.     q += 1
  20.    
  21.     if q + 1 > q_max:
  22.         q = 0
  23.     sleep(0.3)
  24.  
  25.