Delay between for loop iteration (python) -


Is possible in Python? I have written a great loop / script in Python and would like to add this delay to IA if possible.

  Map (firefox.open, ['http://www.bing.com/search? q = '+ str (i) for class i) ()), [2]] * x) Where do I put  sleep (6) ?   

You can do this time.sleep (some_seconds) .

 from  to sleep in time (10) for sleep: print i sleep (0.5) in # seconds   

implementation

Here's a cool little implementation of that: (Paste it in a .py file and run it)

 From  to sleep in sleep (101) from time to time: sleep '\ r' + str (i) + '% complete', time. Sleep (0.1)   

Map (for firefox.open, ['' + str (i) in category (x)], [2] * x) < / div>

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -