import multiprocessing
imprort time
def test():
while True:
print("_______________11_______")
time.sleep(1)
def main():
p1=multiprocessing.Process(target=teset)
p1.start()
if __name__=="main":
main()
import multiprocessing
imprort time
def test():
while True:
print("_______________11_______")
time.sleep(1)
def main():
p1=multiprocessing.Process(target=teset)
p1.start()
if __name__=="main":
main()
转载于:https://www.cnblogs.com/quan54/p/10535681.html