【问题标题】:How to make time delays in Python [duplicate]如何在Python中进行时间延迟[重复]
【发布时间】:2012-03-13 06:05:08
【问题描述】:

可能重复:
How can I make a time delay in Python?

在 Python 中,如何让事情延迟?就像在 RBLX.lua 中一样,您执行“wait(3)”,当前脚本会延迟 3 秒。你怎么能在 Python 中做到这一点?

【问题讨论】:

标签: python


【解决方案1】:

你可以使用这个延迟 3 秒:

import time
time.sleep(3)

【讨论】:

    猜你喜欢
    • 2010-09-09
    • 2013-05-04
    • 2014-04-03
    • 2019-02-21
    • 1970-01-01
    • 2011-03-26
    • 1970-01-01
    相关资源
    最近更新 更多