type Dog struct {
Name_ string
Age_ uint8
}
func (d Dog)Name() string{
return d.Name_
}
func (d Dog)Age() uint8{
return d.Age_
}
Name_ string
Age_ uint8
}
func (d Dog)Name() string{
return d.Name_
}
func (d Dog)Age() uint8{
return d.Age_
}
2021-01-12
for i:=1;i<=(len(map1)+1);i++{
fmt.Println(i,":",map1[i])
}
这样不行吗
fmt.Println(i,":",map1[i])
}
这样不行吗
2020-09-21