Skip to content

Commit

Permalink
feat: ta result gen to txt
Browse files Browse the repository at this point in the history
  • Loading branch information
yhzhu99 committed Mar 16, 2021
1 parent cb72afe commit 1674eb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down

0 comments on commit 1674eb3

Please sign in to comment.