gpt4 book ai didi

RSelenium 中的随机 sleep 时间

转载 作者:行者123 更新时间:2023-12-01 13:30:56 25 4
gpt4 key购买 nike

在 R selenium 中,可以像这样设置 sleep 时间:

Sys.sleep(15)

如何设置随机时间?在python中是这样的:
time.sleep(random.uniform(3.5,6.9))

最佳答案

Sys.sleep(sample(1:10, 1))
应该解决问题

关于RSelenium 中的随机 sleep 时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34672887/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com