我有一個問題,它並不真正知道如何問。我會盡可能地盡力解釋。我不得不使用bash腳本自動化安裝過程。在這個過程中,我調用了一個名爲configure.py的Python腳本。該腳本需要輸入終端。自動輸入終端
有沒有辦法通過傳遞終端參數等待來調用腳本?
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.11.4 (licensed under the GNU General Public
License) for Python 2.7.9 on linux2.
Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.
Do you accept the terms of the license? yes
非常感謝。
搜索提示「期望python」。 – Dummy00001