【发布时间】:2018-08-09 10:02:35
【问题描述】:
我是python初学者,想知道np.split(x, [3, 5])中[3,5]的用途
x = [1, 2, 3, 99, 99, 3, 2, 1]
x1, x2, x3 = np.split(x, [3, 5])
print(x1, x2, x3)
输出:
[1 2 3] [99 99] [3 2 1]
【问题讨论】:
-
你读过documentation吗?