sleep
Posted rsapaper
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sleep相关的知识,希望对你有一定的参考价值。
1 $str = \'w0\'; 2 for($w=0;$w<999999;$w++){ 3 $sql = \'INSERT INTO w1 (wint,wchar) VALUES (\'.$w.\',"\'.$str.\'")\'; 4 mysqli_query($link,$sql); 5 6 }
1 $str = \'w1\'; 2 for($w=1000000;$w<1999999;$w++){ 3 $sql = \'INSERT INTO w1 (wint,wchar) VALUES (\'.$w.\',"\'.$str.\'")\'; 4 mysqli_query($link,$sql); 5 6 }
1 $str = \'w0\'; 2 for($w=0;$w<60;$w++){ 3 $sql = \'INSERT INTO w1 (wint,wchar) VALUES (\'.$w.\',"\'.$str.\'")\'; 4 mysqli_query($link,$sql); 5 6 }
1 $str = \'w1\'; 2 for($w=100;$w<160;$w++){ 3 $sql = \'INSERT INTO w1 (wint,wchar) VALUES (\'.$w.\',"\'.$str.\'")\'; 4 mysqli_query($link,$sql); 5 6 }
1 $str = \'w1\'; 2 for($w=100;$w<160;$w++){ 3 $sql = \'INSERT INTO w1 (wint,wchar) VALUES (\'.$w.\',"\'.$str.\'")\'; 4 mysqli_query($link,$sql); 5 sleep(1); 6 }
1 $str = \'w0\'; 2 for($w=0;$w<60;$w++){ 3 $sql = \'INSERT INTO w1 (wint,wchar) VALUES (\'.$w.\',"\'.$str.\'")\'; 4 mysqli_query($link,$sql); 5 sleep(1); 6 }
以上是关于sleep的主要内容,如果未能解决你的问题,请参考以下文章
Selenium Xpath元素无法定位 NoSuchElementException: Message: no such element: Unable to locate element(代码片段
在没有 time.sleep 的代码中添加时间延迟(代码包含线程)