开发者

Use python to automate interaction?

开发者 https://www.devze.com 2023-02-15 04:10 出处:网络
Is it possible to use python in order to automate interaction in Linux? (for example, sending \"Yes\" to StdInput whenever the string \"Are yo开发者_StackOverflow社区u sure?\" is sent to StdOutput)

Is it possible to use python in order to automate interaction in Linux? (for example, sending "Yes" to StdInput whenever the string "Are yo开发者_StackOverflow社区u sure?" is sent to StdOutput)

Thanks.


Yes, take a look at pexpect.

0

精彩评论

暂无评论...
验证码 换一张
取 消