golang输入输出(input/output)

func main() { 
p := make([]byte, num)
    n, err := reader.Read(p)
    if n > 0 {
        fmt.println("读取到内容",p[:n]) 
    }
}

 

posted @ 2020-05-10 16:55  coding天荒地老  阅读(668)  评论(0编辑  收藏  举报