青春纸盒子

文: 芦苇

你喜欢我笑的样子

我靠上了落寞的窗子

晚风吹起了我的袖子

明月沾湿了你的眸子


转身,你走出了两个人的圈子

树影婆娑,整座院子


挽起袖子

回头,把揽你忧伤一地的影子

装进,青春,这纸盒子


更多代码请关注我的微信小程序: "ecoder"

luwei0915

导航

84_Go基础_1_52 net error

 1 package main
 2 
 3 import (
 4     "fmt"
 5     "net"
 6 )
 7 
 8 func main() {
 9     addr, err := net.LookupHost("www.baidu.com")
10     fmt.Println(err)
11     if ins, ok := err.(*net.DNSError); ok {
12         if ins.Timeout() {
13             fmt.Println("操作超时。。")
14         } else if ins.Temporary() {
15             fmt.Println("临时性错误。。")
16         } else {
17             fmt.Println("通常错误。。")
18         }
19     }
20     fmt.Println(addr)
21 }

 

posted on 2021-12-02 16:18  芦苇の  阅读(25)  评论(0编辑  收藏  举报