标签:【新萄京娱乐手】
  • Start 10 copies of a function running in parallel

    Start 10 copies of a function running in parallel

    标签:新萄京娱乐手 2019-06-16
    import threaddef counter(myId, count): for i in range(count): print '[%s] = %s' % (myId, i)for i in range(10): print thread.start_new(counter, (i, 100))import timetime.sleep(3) print 'Main thread exiting.'...
共1页/1条