import multiprocessing
import time
def dance():
for item in range(1, 5):
print("跳舞...")
time.sleep(0.2)
pass
pass
def sing():
for item in range(1, 5):
print("唱歌...")
time.sleep(0.2)
pass
pass
if __name__ == "__main__":
dance_process = multiprocessing.Process(target=dance)
sing_process = multiprocessing.Process(target=sing)
dance_process.start()
sing_process.start()