W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_numpy_random_array_3.py:
from numpy import random x = random.choice([3, 5, 7, 9], size=(3, 5)) print(x)
x
from
numpy
import
random
x
=
random
.
choice
([
3
,
5
,
7
,
9
],
size
=
(
3
,
5
))
print
(
x
)