摘要: package main import ("fmt")//对象定义type Rect struct{x,y float64width ,height float64} //对象方法实现func (r *Rect) Area()float64{return r.width*r.height}//Go语... 阅读全文
posted @ 2014-05-16 17:01 Arthur.Wang 阅读(3060) 评论(0) 推荐(0) 编辑