python - 为什么argparse输入变成数组
PHPz
PHPz 2017-04-17 17:09:30
0
1
716

输入10但是获得的是一个数组[10],这个是什么问题呢?

PHPz
PHPz

学习是最好的投资!

reply all(1)
黄舟

Because of the use of nargs. nargs

Note that nargs=1

Note that nargs=1 produces a list of one item. This is different from the default, in which the item is produced by itself.

argparse documentation about nargs#🎜🎜#
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!