任何人都可以指导我如何将JSON文件路径作为运行时参数传递给main.py文件吗? 这段代码来自GitHub https://github.com/ganesh-karthick/TwitterUserRanker
helpText = "Usage: \n python main.py -f , --file=<InputJSONFile> \n[optional] -t , --topXUsers=<number>"
我正在尝试:
helpText = "Usage: \n python main.py -f , --file=/Users/RawanAbdullah/Downloads/TwitterUserRankerMaster/marssample.json \n[optional] -t , --topXUsers=<number>"
输出:
我知道这可能很容易,但是我对python有点陌生