import time from tomorrow import threads @threads(3) def print_thread(i): time.sleep(2) print(time.strftime("%H:%M:%S"),i,"执行完毕") list = { 'AAA', 'BBB', 'CCC', } if __name__ == '__main__': for i in list: print(time.strftime("%H:%M:%S"),"启动:", i) print_thread(i) time.sleep(0.5)