摘要:
阅读全文
posted @ 2019-07-13 14:35
孙龙-程序员
阅读(661)
评论(0)
推荐(0)
摘要:
package model import "fmt" type person struct { Name string age int //其它包不能直接访问.. sal float64 } //写一个工厂模式的函数,相当于构造函数 func NewPerson(name string) *pers 阅读全文
posted @ 2019-07-13 14:20
孙龙-程序员
阅读(168)
评论(0)
推荐(0)
摘要:
package main import ( "fmt" ) //定义一个结构体Account type Account struct { AccountNo string Pwd string Balance float64 } //方法 //1. 存款 func (account *Account 阅读全文
posted @ 2019-07-13 14:12
孙龙-程序员
阅读(289)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2019-07-13 14:05
孙龙-程序员
阅读(213)
评论(0)
推荐(0)
浙公网安备 33010602011771号