💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
~~~ 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() ~~~