Go小爬虫

package main import ( "fmt" "io/ioutil" "net/http" ) func main() { //一、http.get获取 v,err :=http.Get("http://4399.com/") if err!=nil{ fmt.Println(err) //错误信息 } //二、关闭 defer v.Body.Close(
相关文章
相关标签/搜索