摘要: import numpy as np x=np.array([1,2,3,4,5,6,7,8,9]) np.clip(x,4,6) Out[88]: array([4, 4, 4, 4, 5, 6, 6, 6, 6]) numpy.clip(a, a_min, a_max, out=None) 其实 阅读全文
posted @ 2020-02-26 11:05 Z_Agent 阅读(520) 评论(0) 推荐(0) 编辑