Example 009: pause output for one second

Time:2020-9-13

100 interesting programming problems in Python

Example 009: pause output for one second
The title is suspended for one second.

Program analysis uses the sleep() function of the time module.

import time
for i in range(4):
    print(str(int(time.time()))[-2:])
    time.sleep(1)
#There are many ways to solve this problem. This method is not the standard answer. Readers can try various methods by themselves.

If you like my article, please slide to the bottom and click a recommendation

To give me motivation Oh; reprint please note the source. Then… Please come and be a guest duck.