rectangle = [(0,0,0),(0,1,0),(1,1,0),(1,0,0)] x, y, z = zip(*rectangle) centroid = (sum(x)/len(x), sum(y)/len(y), sum(z)/len(z)) 我只会这样求,但是显然对于N维来说,这个样子太累了... 查看完整描述