threads = [
threading.Thread(name='1', target=myfunc),
threading.Thread(name='2', target=myfunc)
]
i = 0
while i < len(items):
for thread in threads:
if not thread.is_alive():
thread.args = (1,2,3,4)
thread.start()
i += 1
Спасибо.
threads = [
threading.Thread(name='1', target=myfunc),
threading.Thread(name='2', target=myfunc)
]
i = 0
while i < len(items):
for thread in threads:
if not thread.is_alive():
thread.args = (1,2,3,4)
thread.start()
i += 1
victor_krВерно
СИли это значение можно устанавливать только в конструкторе?