[問題] 同時執行多條程式碼
因為Python是直譯式,所以要一條程式碼執行完畢才會繼續執行下一條
如果有兩條不同的程式要同時執行
是不是只能透過import threading或multiprocessing才能實現?
還有其他Python原生的方法嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 209.107.216.163
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1548946505.A.B28.html
推
01/31 23:00,
6年前
, 1F
01/31 23:00, 1F
謝謝,我研究看看。
※ 編輯: shala (209.107.216.163), 02/01/2019 00:25:51
→
02/02 02:00,
6年前
, 2F
02/02 02:00, 2F
謝謝,我研究看看!
※ 編輯: shala (209.107.216.199), 02/03/2019 11:21:13
Python 近期熱門文章
PTT數位生活區 即時熱門文章