2 questions
import subprocessfrom cStringIO import StringIOsubprocess.Popen(['grep','f'],stdout=subprocess.PIPE,stdin=StringIO('one\ntwo\nthree\nfour\nfive\nsix\n')).communicate()[0]Traceback (most recent call la...
I need to get input only from stdin, how do I do it on Python?
© 2024 OneMinuteCode. All rights reserved.