저는 Programming Python 4th Edition을 읽고 있습니다.파이썬에서 멀티 스레드를 사용하는 출력이없는 이유는 무엇입니까?
$python3 thread-example.py
$
는 사람이에 대한 아이디어가 있습니까 :
import _thread
def action(i):
print(i ** 32)
class Power:
def __init__(self, i):
self.i = i
def action(self):
print(self.i ** 32)
_thread.start_new_thread(action,(2,))
_thread.start_new_thread((lambda: action(2)),())
obj = Power(2)
_thread.start_new_thread(obj.action,())
내가 그것을 실행하면 아무 화면에 출력이 없다 :
코드 (Python3.2)들이다?