time.sleep(x) not working as it should? [duplicate]
问题 This question already has answers here : How to print one character at a time on one line? (3 answers) Closed last year . Okay, so I'm making a small programme for fun and I'd like to create a refresh button that allows the user to control how regularly the data is collected and shown. I decided to use the time.sleep(x) x being what the raw_input was. But it doesn't seem to be working as it should. It pauses the full script then does everything. eg: import time print "This now" time.sleep(x)