[問題] 請問有好用的自動回應函式庫

看板Python作者 (阿吉)時間6年前 (2018/12/19 14:50), 編輯推噓0(003)
留言3則, 2人參與, 6年前最新討論串1/1
能否推薦 python 下,能依據 console 程式輸出,產生自動回應(模擬 stdin 輸入)的 package。 透過 subprocess 有點麻煩。 -- Sent from my Windows -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.229.142.157 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1545202231.A.0A2.html

12/19 15:47, 6年前 , 1F
pexpect 可以試試
12/19 15:47, 1F

12/19 16:16, 6年前 , 2F
感謝,應該就是這個。當初有看到有人強力推薦。但一時想
12/19 16:16, 2F

12/19 16:16, 6年前 , 3F
不出來,google keyword 下得不好,找出一堆。
12/19 16:16, 3F
文章代碼(AID): #1S6Uet2Y (Python)
文章代碼(AID): #1S6Uet2Y (Python)