This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
In Python, there is no need to write arguments --like_this . You can do arguments --like-this , and argparse will convert the - characters to _ . For example: >>> import argparse >>> parser = argparse . ArgumentParser () >>> parser . add_argument ( "--like-this" , type = int ) >>> args = parser . parse_args ( "--like-this=123" . split ()) >>> args Namespace ( like_this = 123 ) >>> args . like_this…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.