Python 对一个 list 进行 降采样

https://www.cnpython.com/qa/38388

 

这个网站总结的非常详细。

 

import numpy as np
a = np.arange(1,11,1)
print(a)
print(a[::3])
posted @ 2021-06-04 13:01  bH1pJ  阅读(667)  评论(0编辑  收藏  举报