十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
import time
import threading
def foo(n):
for i in range(n):
print(i)
time.sleep(1)
t_list = []
for _ in range(2):
t = threading.Thread(target=foo, args=(10, ), daemon=True)
t_list.append(t)
t.start()
for i in t_list:
i.join()
print('Main Tread Exiting')