如何在 python 中的两个语句执行之间插入 1 秒的时间间隔

How to insert a time gap of 1 second between execution of two statements in python

我在 python 2.7 网络抓取程序中有一个 "FOR" 循环,我将在 FOR 循环结束时插入 1 秒的时间间隔。我怎样才能做到这一点? 谢谢

导入时间库:导入时间;

并使用:time.sleep(1)