📜  numpy 的 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:16.241000             🧑  作者: Mango

代码示例2
import numpy
print(numpy.ones((2, 3), dtype=int))
# creates the array of the shape (2, 3) of value 1 in its each cell
print(numpy.ones(6, dtype=str) 
# creates an array of size 6 with values of '1'