loop_win.py 290 B

1234567891011121314151617
  1. import os
  2. import subprocess
  3. import time
  4. from multiprocessing import Process
  5. def f(name):
  6. os.system('python hhh_phantom.py')
  7. if __name__ == '__main__':
  8. for i in range(10):
  9. p = Process(target=f, args=('bob',))
  10. p.start()
  11. # p.
  12. # p.join()
  13. # p.join()