问题
For ex:- Below I have four different functions and they do all different things on a particular domain. Now What I want is to run crawler
to work behind these other functions work so my code will move faster.
crawler(domain)
f2()
f3()
f4()
How can I? I have tried this:-
th = threading.Thread(crawler)
th.start()
f2()
f3()
f4()
th.join()
Is this code can be considered efficient and effective?
来源:https://stackoverflow.com/questions/46642992/how-to-run-a-function-so-it-works-also-when-other-functions-work