summaryrefslogtreecommitdiff
path: root/agent/apps
diff options
context:
space:
mode:
author韩丁康 <[email protected]>2024-04-01 09:32:38 +0800
committer韩丁康 <[email protected]>2024-04-01 09:32:38 +0800
commit38d397681518173398a86003f7f30db5aaa448a2 (patch)
treed3f6b687a527763dea71ae02aafadd03d07ba3d2 /agent/apps
parent8cf456bd17c7dbf3d6c74d3b67bef08a12cdb33d (diff)
新增代理测试文件code/test/hello.py,用于测试代理参数传递接收功能
Diffstat (limited to 'agent/apps')
-rw-r--r--agent/apps/code/test/hello.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/agent/apps/code/test/hello.py b/agent/apps/code/test/hello.py
new file mode 100644
index 0000000..e8b6f5e
--- /dev/null
+++ b/agent/apps/code/test/hello.py
@@ -0,0 +1,6 @@
+import argparse
+
+parser = argparse.ArgumentParser()
+parser.add_argument('-s', '--string', type=str, help="输出到控制台的字符串", required=True)
+args = parser.parse_args()
+print("hello" + str(args.string))