Last active
April 22, 2021 03:39
-
-
Save kanekomasahiro/3d4aa60c3663ad6990932810dc634ac7 to your computer and use it in GitHub Desktop.
pythonのtemplateコード.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
def parse_args(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--input', type=str, required=True) | |
args = parser.parse_args() | |
return args | |
def main(args): | |
if __name__ == "__main__": | |
args = parse_args() | |
main(args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment