Here is my code:
import time
print('test')
time.sleep(1)
print('add')
However this's working, Python print test and sleep 1 second, then print add.
But if I change my code to this:
import time
print('test', end='')
time.sleep(1)
print(' add')
Python will sleep 1 second first, then print testadd. How to fix this?
I need print test without \n, and sleep 1 second, then print add after it.