Use system function to output : stdout stderr « Development « Python






Use system function to output

Use system function to output

import sys                          # printing the hard way
sys.stdout.write('hello world\n')

           
       








Related examples in the same category

1.Different way to output string: print and sys.stdout.writeDifferent way to output string: print and sys.stdout.write
2.Introducing stdout and stderrIntroducing stdout and stderr
3.Redirecting stdout and stderr OutputRedirecting stdout and stderr Output
4.Redirecting Error Information
5.Printing to stderrPrinting to stderr