合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
~~~ import threading import time def sing(msg): while True: print(msg) time.sleep(1) def dance(msg): while True: print(msg) time.sleep(1) sing_thread = threading.Thread(target=sing, args=("唱歌。。",)) dance_thread = threading.Thread(target=dance, args={"跳舞。。"}) sing_thread.start() dance_thread.start() ~~~