go
杨玉庆
这个作者很懒,什么都没留下…
展开
-
go 逐行读写
package main import ( "bufio" "fmt" "io" "os" ) func main() { cc, _ := os.OpenFile("1.txt", os.O_CREATE|os.O_RDWR|os.O_TRUNC, 0666) br := bufio.NewReader(cc) for { a, _, c := br.ReadLine(...原创 2019-10-30 17:18:18 · 344 阅读 · 0 评论 -
GO 单链表实现
package link //package link import ( "fmt" ) type Student struct { Id int Name string } type Node struct { Student Next *Node } func (head *Node) Creat() *Node { head = nil return head } ...原创 2019-10-18 20:45:58 · 189 阅读 · 0 评论