阅读背景:

Python:响应命令行提示。

来源:互联网 

I am trying to use Python to interact with another program via the command line. The main problem I am having is a specific call that has multiple follow-up prompts. Initially the command line call asks for the name of a project and then proceeds to ask if I would like to view any of the subfolders of the project. I need to answer y/n to each of these in order and the answer to each is unfortunately not all y or n. Additionally, I cannot know the answer to the question without reading the individual prompts so I am incapable of sending a block of 'y's or 'n's all at once.I am trying to use Python to interact with anot




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: