import threading
import time
def worker():
count = 0
while True:
if count > 5:
break
time.sleep(1)
count += 1
print('worker running and threading_name={}'.format(
threading.current_thread().name))
class MyThread(threading.Thread):
def start(self):
print('start-------')
super().start()
def run(self):
print('run------')
super().run()
t = MyThread(name='worker',target=worker)
# t.start()
t.run()
售后响应及时
7×24小时客服热线数据备份
更安全、更高效、更稳定价格公道精准
项目经理精准报价不弄虚作假合作无风险
重合同讲信誉,无效全额退款