使用join() 將主執行緒暫停,等待指定的執行緒結束,主執行緒才會結束。以下範例為未加及加了join的程式碼與結果比較 # 未加join() import threading import time
確定! 回上一頁