Help me to print to screen as well as log
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Fri Nov 22 09:15:08 EST 2013
On Fri, 22 Nov 2013 05:51:21 -0800, Himanshu Garg wrote:
> I want that print "hello" should appear on screen as well as get saved
> in a log file.
>
> How can I accomplish this?
print "hello"
logfile.write("hello\n")
Does that satisfy your need? If not, please explain in more detail what
you are trying to do, what you have already tried, and what happened when
you tried it.
--
Steven
More information about the Python-list
mailing list