golang 安装逐行读取txt
摘要:
package main import ( "bufio" "fmt" "io" "os" "strings" ) var records []string func ReadTxt() { f, err := os.Open("mytest.txt") if err != nil { fmt.Pr 阅读全文
posted @ 2022-01-18 22:38 ljymoonlight 阅读(139) 评论(0) 推荐(0) 编辑