Skip to content

Instantly share code, notes, and snippets.

@esehara
Created December 1, 2011 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esehara/1417413 to your computer and use it in GitHub Desktop.
Save esehara/1417413 to your computer and use it in GitHub Desktop.
栗まんじゅう
import threading
import time
def kuriman():
kuriman = 1
while 1:
kuriman = kuriman * 2 if kuriman > 1 else 2
yield kuriman
def byby():
manju = kuriman()
while 1:
print
print "()" * manju.next(),
time.sleep(30)
def main():
t = threading.Thread(target = byby)
t.setDaemon(True)
t.start()
while 1:pass
if __name__ == "__main__":main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment