1.Go的Publich函数必须是大写,否则调用时会报错:cannot refer to unexported name
2.函数参数polylineLength(p []Point)这样表示接收的是切片,而非数组
3.Go没有true?a:b的三目运算符
1.Go的Publich函数必须是大写,否则调用时会报错:cannot refer to unexported name
2.函数参数polylineLength(p []Point)这样表示接收的是切片,而非数组
3.Go没有true?a:b的三目运算符