argparse.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:teras 作者: chantera 项目源码 文件源码
def __init__(self,
                 prog=None,
                 usage=None,
                 description=None,
                 epilog=None,
                 parents=[],
                 formatter_class=argparse.HelpFormatter,
                 prefix_chars='-',
                 fromfile_prefix_chars=None,
                 argument_default=None,
                 conflict_handler='error',
                 add_help=True,
                 allow_abbrev=True):
        super(ArgumentParser, self).__init__(
            prog,
            usage,
            description,
            epilog,
            parents,
            formatter_class,
            prefix_chars,
            fromfile_prefix_chars,
            argument_default,
            conflict_handler,
            add_help,
            allow_abbrev)
        self.register('action', 'store_dict', _StoreDictAction)
        self.register('action', 'store_dict_const', _StoreDictConstAction)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号