1 web=webdriver.Firefox() 2 web.get() 3 4 def work1(): 5 def work2(): 6 def work3() 7 8 w1 = Process(target=work1,name='w1') 9 w2 = Process(target=work2,name='w2') 10 w3 = Process(target=work3,name='w3') 11 12 w1.start() 13 w2.start() 14 w3.start()
这样它打开的是三个firefox啊。
能不能让它们只打开一个firefox、???
(不用线程)