Demo entry 6696721

stdout en python

   

Submitted by anonymous on Jan 24, 2018 at 05:29
Language: Python 3. Code size: 129 Bytes.

def SetTextFile(texte):
    import sys

    old_stdout = sys.stdout
    sys.stdout = open(texte+'.txt', 'w')
    help(texte)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).