cmd 提示 Y/N 如何程序化输入?


WARNING: The output directory "C:\Users\ACE\dist\Main" and ALL ITS CONTENTS will
be REMOVED! Continue? (y/n)

pyinstaller的打包命令。不知道怎么才能自动输入Y。

os.system("pyinstaller ....")

我是windows平台的

命令行 python cmd

minexu 9 years, 8 months ago

 yes|pyinstaller...

ACG初心者 answered 9 years, 8 months ago


 os.system("@echo yes | pyinstaller...")

Xiayuhe answered 9 years, 8 months ago

Your Answer