This commit is contained in:
yanweidong
2026-01-29 03:16:11 +08:00
parent 81e6472cd0
commit fd511e1695
4 changed files with 1619 additions and 1698 deletions

View File

@@ -49,7 +49,7 @@ func main() {
}
func WriteResults(data []*ResultData, tag string) {
rf, err := os.OpenFile("./result/stocks_"+tag+".csv", os.O_RDWR|os.O_CREATE, os.ModePerm)
rf, err := os.OpenFile("./result/stocks_"+tag+".csv", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.ModePerm)
if err != nil {
panic(err)
}