Python的延迟 Python的time.sleep()精度只有秒! 结论 Python的time.sleep()精度只有秒! 延迟是一个非常重要的功能,有时候我们确实需要精确的延迟。 Python中的延迟方法貌似只有 import time A = time.time() time.sleep(2) B = time.time() X = B - A print(X) 上述代码可以延迟2秒ÿ