parser.add_argument(
'--shuffle',
action='store_true',
default=False,
help='whether to shuffle the file list')
store_true 是指带触发action时为真,不触发则为假.
python test.py -shuffle #shuffle是true(触发) python test.py #shuffle是False(未触发)



