【发布时间】:2019-12-16 12:16:49
【问题描述】:
我有一个程序,它的参数是 3 个文件:2pdf 和 1 个 txt。我用手在控制台上输入它。
path_text = input("Enter path to text file ")
path_pdf_first = input("Enter path to fist pdf file ")
path_pdf_second = input("Enter path to second pdf file ")
我如何像这样从 cmd 使用这个程序
python program.py *path1* *path2* *path3*
而不是用手和“输入”一次又一次
【问题讨论】: