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
Post a Comment