From 124560647bbf714492e1193fc95a97222e8482e1 Mon Sep 17 00:00:00 2001 From: xiamengzhou <296337231@qq.com> Date: Mon, 5 Feb 2024 11:16:16 -0500 Subject: [PATCH] update --- test.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 test.py diff --git a/test.py b/test.py deleted file mode 100644 index babf5c2..0000000 --- a/test.py +++ /dev/null @@ -1,17 +0,0 @@ -import argparse - -# Create the parser -parser = argparse.ArgumentParser(description="Example script.") - -# Add the argument -# The '+' sign means "one or more". -# The parser will expect at least one value, and all values will be gathered into a list. -parser.add_argument("--mylist", nargs='+', type=int, help="A list of integer values", default=[1, 2, 3]) -parser.add_argument("--mylist2", type=int, help="A list of integer values", default=2) - -# Parse the arguments -args = parser.parse_args() - -# Access the argument values (which will be a list) -print(args.mylist) - -- GitLab