上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 44 下一页
摘要: package main import ( "fmt" "os" //"MyProject/pingguoxueyuan/gostudy/listen13/homework/student_mgr" ) // 把下面这个结构体和函数注释了就不能单独go run 运行了,要go build才能把2个文 阅读全文
posted @ 2022-03-18 23:02 ty1539 阅读(37) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" ) type Address struct { Province string City string CreateTime string } type Email struct { Account string CreateTime stri 阅读全文
posted @ 2022-03-18 22:18 ty1539 阅读(824) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" ) type User struct { Username string Sex string Age int int string } type Address struct { Province string City string } t 阅读全文
posted @ 2022-03-18 21:38 ty1539 阅读(25) 评论(0) 推荐(0) 编辑
摘要: package main import "fmt" func test1() { var a interface{} // 空接口可以实现任何类型的变量 var b int =100 a = b fmt.Printf("test1 00> %T %v \n",a,a) var c string = 阅读全文
posted @ 2022-03-18 19:24 ty1539 阅读(47) 评论(0) 推荐(0) 编辑
摘要: package main import("fmt") type Programer struct { name string base float32 extra float32 } func (p Programer) CalcSalary() float32 { return p.base } 阅读全文
posted @ 2022-03-18 19:17 ty1539 阅读(43) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "io" "net/http" ) func main(){ //获取服务器应答包内容 resp,err := http.Get( "http://www.baidu.com") if err != nil { fmt.Println( "ht 阅读全文
posted @ 2022-03-18 18:51 ty1539 阅读(25) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "net/http" "os" ) func OpenSendFile(fName string, w http.ResponseWriter) { //pathFileName := "C:/itcast/test" + fNmae path 阅读全文
posted @ 2022-03-18 18:49 ty1539 阅读(25) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/flyfreelyit/article/details/80281467 https://blog.csdn.net/qq_27295403/article/details/110469972 https://blog.csdn.net/qq_290611 阅读全文
posted @ 2022-03-18 18:28 ty1539 阅读(44) 评论(0) 推荐(0) 编辑
摘要: web工作万式: 1.客户端——>访问www.baidu.com ——> DNS服务器。返回该域名对应的IP地址。 2.客户端——> IP + port ——>访问网页数据。(TCP连接。HTTP协议。) http和URL: http超文本传输协议。规定了浏览器访问Web服务器进行数据通信的规则。h 阅读全文
posted @ 2022-03-17 00:35 ty1539 阅读(198) 评论(0) 推荐(0) 编辑
摘要: http://www.golang.ren/ https://studygolang.com/pkgdoc https://studygolang.gitbook.io/learn-go-with-tests/ 阅读全文
posted @ 2022-03-16 22:54 ty1539 阅读(46) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 44 下一页