青春纸盒子

文: 芦苇

你喜欢我笑的样子

我靠上了落寞的窗子

晚风吹起了我的袖子

明月沾湿了你的眸子


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

树影婆娑,整座院子


挽起袖子

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

装进,青春,这纸盒子


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

luwei0915

导航

上一页 1 2 3 4 5 6 7 8 9 ··· 51 下一页

2021年12月8日

93_Go基础_1_61 偏移量 seek

摘要: 1 package main 2 3 import ( 4 "fmt" 5 "io" 6 "log" 7 "os" 8 ) 9 10 func main() { 11 /* 12 Seek(offset int64, whence int) (int64, error),设置指针光标的位置 13 第 阅读全文

posted @ 2021-12-08 13:42 芦苇の 阅读(108) 评论(0) 推荐(0) 编辑

92_Go基础_1_60 拷贝文件

摘要: 1 package main 2 3 import ( 4 "fmt" 5 "io" 6 "io/ioutil" 7 "os" 8 ) 9 10 // 该函数:用于通过io操作实现文件的拷贝,返回值是拷贝的总数量(字节),错误 11 func CopyFile1(srcFile, destFile 阅读全文

posted @ 2021-12-08 12:18 芦苇の 阅读(30) 评论(0) 推荐(0) 编辑

2021年12月3日

91_Go基础_1_59 file.Write

摘要: 1 package main 2 3 import ( 4 "fmt" 5 "log" 6 "os" 7 ) 8 9 func HandleErr(err error) { 10 if err != nil { 11 log.Fatal(err) 12 } 13 } 14 15 func main( 阅读全文

posted @ 2021-12-03 17:56 芦苇の 阅读(26) 评论(0) 推荐(0) 编辑

90_Go基础_1_58 read

摘要: 1 package main 2 3 import ( 4 "fmt" 5 "io" 6 "os" 7 ) 8 9 func main() { 10 /* 11 读取数据: 12 Reader接口: 13 Read(p []byte)(n int, error) 14 */ 15 16 // ste 阅读全文

posted @ 2021-12-03 17:07 芦苇の 阅读(25) 评论(0) 推荐(0) 编辑

89_Go基础_1_57 IO操作

摘要: 1 package main 2 3 import ( 4 "fmt" 5 "os" 6 "path/filepath" 7 ) 8 9 func main() { 10 /* 11 文件操作: 12 1.路径: 13 相对路径:relative 14 ab.txt 15 相对于当前工程 16 绝对 阅读全文

posted @ 2021-12-03 16:43 芦苇の 阅读(37) 评论(0) 推荐(0) 编辑

88_Go基础_1_56 os.Stat

摘要: 1 package main 2 3 import ( 4 "fmt" 5 "os" 6 ) 7 8 func main() { 9 /* 10 FileInfo:文件信息 11 interface 12 Name(),文件名 13 Size(),文件大小,字节为单位 14 IsDir(),是否是目 阅读全文

posted @ 2021-12-03 16:04 芦苇の 阅读(66) 评论(0) 推荐(0) 编辑

87_Go基础_1_55 panic and recover

摘要: 1 package main 2 3 import "fmt" 4 5 func myprint(s string) { 6 fmt.Println(s) 7 } 8 9 func funA() { 10 fmt.Println("我是一个函数funA()....") 11 } 12 13 func 阅读全文

posted @ 2021-12-03 15:56 芦苇の 阅读(22) 评论(0) 推荐(0) 编辑

2021年12月2日

86_Go基础_1_54 自定义结构体实现错误2

摘要: 1 package main 2 3 import "fmt" 4 5 type areaError struct { 6 msg string // 错误的描述 7 lenght float64 // 发生错误的时候,矩形的长度 8 width float64 // 发生错误的时候,矩形的宽度 9 阅读全文

posted @ 2021-12-02 19:00 芦苇の 阅读(27) 评论(0) 推荐(0) 编辑

85_Go基础_1_53 自定义结构体实现错误

摘要: 1 package main 2 3 import ( 4 "fmt" 5 "math" 6 ) 7 8 //1.定义一个结构体,表示错误的类型 9 type areaError struct { 10 msg string 11 radius float64 12 } 13 14 // 2.实现e 阅读全文

posted @ 2021-12-02 18:40 芦苇の 阅读(37) 评论(0) 推荐(0) 编辑

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 := 阅读全文

posted @ 2021-12-02 16:18 芦苇の 阅读(22) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 51 下一页