diff options
| author | shihaoyue <[email protected]> | 2024-06-19 22:38:15 +0800 |
|---|---|---|
| committer | shihaoyue <[email protected]> | 2024-06-19 22:38:15 +0800 |
| commit | 528fd61fb1f48d3a1ff6b811f7a5fefea5b8222c (patch) | |
| tree | 191d54c419f93ef30a2a6d73c00a0f79babd3b19 /agent/apps/code | |
| parent | bafae949d421cbff2a1cadaa62b6105fea09df99 (diff) | |
update: 单行log发送
Diffstat (limited to 'agent/apps/code')
| -rw-r--r-- | agent/apps/code/test/hello.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/agent/apps/code/test/hello.py b/agent/apps/code/test/hello.py index 1e00d19..471796d 100644 --- a/agent/apps/code/test/hello.py +++ b/agent/apps/code/test/hello.py @@ -5,6 +5,9 @@ parser = argparse.ArgumentParser() parser.add_argument('-s', '--string', type=str, help="输出到控制台的字符串", required=True) args = parser.parse_args() print("hello.py开始执行,执行参数为" + args.string) -for _ in range(10): - time.sleep(1) - print("hello " + str(args.string)) +f = open("j.txt", "w+", encoding="utf-8") +i = 0 +while(1): + time.sleep(10) + print(i) + i+=1
\ No newline at end of file |
