+ 5

print() in Python

print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False) The stream is forcibly flushed If flush is True. Default value is False What is meant by "stream is forcibly flushed" and how we cam make value of flush=True and use it ?

13th May 2019, 12:43 PM
harshit
harshit - avatar
5 ответов
+ 1
~ swim ~ how sys.stdout.flush can be used in the given code ?
13th May 2019, 2:19 PM
harshit
harshit - avatar
- 1
But how we know that buffer is used ? by sys.stdout.flush() before flushed by system itself
13th May 2019, 3:11 PM
harshit
harshit - avatar