摘要:
type Tmp struct { Name string Age int } func main( data := []Tmp{ {"zhangsan", 18}, {"lisi", 22}, {"wangwu", 15}, } for _, v := range data { v.Age = 9 阅读全文
摘要:
场景如下,mysql根据用户u_id查询课程,不过该用户的课程为多列数据 table users table curriculums 查询语句 select * from users as u join curriculums as c on c.u_id = u.u_id where c.u_id 阅读全文
摘要:
package main import ( "fmt" ) type ListNode struct{ data int next *ListNode } func NewListNode(data int) *ListNode{ return &ListNode{data:data} } type 阅读全文