摘要:
1. Example of two-dimensional vector: Vector(2,4) + Vector(2,1) results in Vector(4,5) import math # special methods used: __repr__ , __abs__ , __add_ 阅读全文
摘要:
接口详解 // 举例:sort包中的 Sort 函数,如下: func Sort(data Interface) Sort sorts data. It makes one call to data.Len to determine n, and O(n*log(n)) calls to data. 阅读全文