-1

I have a python program which take a dozen input parameters, so normally I invoke it with python my_script.py --inputA a --inputB b --inputC c --inputD d --inputE e --inputF f --inputG g --inputH h --inputI i --inputJ j --inputK k

This is a long line, and it is not easy to read

I tried add \ charactor after --inputA a in command line, but after return the return key, it will run, not wait for me to input another input parameter

rdas
  • 20,604
  • 6
  • 33
  • 46
Liu Hao
  • 472
  • 4
  • 24

1 Answers1

-3

you can use input parameter command

param = input("Please input parameter \n")

here example :

http://en.verejava.com/?id=2022295574921

  • 3
    While this is valid code for when the script is taking input, it does not match the question, which is regarding flags passed in the execution command itself. – shriakhilc May 30 '19 at 06:59