From 1674eb356c98d3c04de67a7f9ebcfcda23ecfacf Mon Sep 17 00:00:00 2001 From: Yinghao Zhu Date: Tue, 16 Mar 2021 16:00:12 +0800 Subject: [PATCH] feat: ta result gen to txt --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 91dfc54..8905036 100644 --- a/main.go +++ b/main.go @@ -135,6 +135,9 @@ func main() { if v1.Login(sid, pwd) { result := v1.QueryResult(sid) fmt.Print(result) + if err := os.WriteFile("ta_judge_result.txt", []byte(result), 0644); err != nil { + panic(err) + } } default: fmt.Println("Expected 'stu' or 'reg' or 'query' subcommands!")