叼花硬汉 2009-02-04 07:04 采纳率: 0%
浏览 782

如何在 Python 中制作时间延迟?

I would like to know how to put a time delay in a Python script.

转载于:https://stackoverflow.com/questions/510348/how-can-i-make-a-time-delay-in-python

  • 写回答

12条回答 默认 最新

  • Didn"t forge 2008-09-15 16:34
    关注

    You can use the sleep() function in the time module. It can take a float argument for sub second resolution.

    from time import sleep
    sleep(0.1) # Time in seconds.
    
    评论

报告相同问题?