摘要: 读取文本 package main import ( "bufio" "fmt" "io" "os" ) // bufio是对文件读取file.Read(buf[:])的进一步封装,先从buf中读取,没有的话,再从文件读, func main(){ // 只读的方式打开 file,err := os 阅读全文
posted @ 2022-04-02 23:58 ty1539 阅读(128) 评论(0) 推荐(0) 编辑