LoginSignup
0
0

More than 5 years have passed since last update.

Brainfu*kでHello World! by QPython

Last updated at Posted at 2015-07-20
brainfuck_run.py
from brainfuck import Brainfuck
bf = Brainfuck(size=10)
bf.compile(">+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.")
#bf.run(limit=1000)
from cStringIO import StringIO
sio = StringIO()
bf.run(limit=1000,out=sio)
p = sio.getvalue()
sio.close()
print p
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0