Answers for "argparse give an array as default"

0

argparse give an array as default

parser.add_argument("--list", nargs="+", default=["a", "b"])
Posted by: Guest on November-04-2020

Python Answers by Framework

Browse Popular Code Answers by Language