I\'m trying to understand the output from this Python 2.7.5 example script:
import time
from multiprocessing import Pool
print(time.strftime(\'%Y-%m-%d %H:%
The modification presented below won't print those lines multiple time.
import time
from multiprocessing import Pool
def main():
if __name__ == '__main__':
print(time.strftime('%Y-%m-%d %H:%M', time.localtime(time.time())))
props2=[
'170339',
'170357',
'170345',
'170346',
'171232',
'170363',
]
pool = Pool(processes=3)
pool.map(go, props2)
print(time.strftime('%Y-%m-%d %H:%M', time.localtime(time.time())))
def go(x):
print(x)
main()