Update python_example.py
This commit is contained in:
parent
e94eb84241
commit
ad0e73f9c3
@ -59,7 +59,7 @@ print('指定个数的等差数列:\n', np.linspace(-2, 2, 5)) # 区间是左
|
||||
print()
|
||||
|
||||
print('随机数:\n', np.random.uniform(-2, 2)) # 随机浮点数
|
||||
print('随机整数:\n', np.random.randint(-10, 10)) # 区间是左闭右闭[-10, 10]
|
||||
print('随机整数:\n', np.random.randint(-10, 10)) # 区间是左闭右开[-10, 10)
|
||||
print()
|
||||
|
||||
# 随机数除了使用numpy库,也使用random生成
|
||||
|
Loading…
x
Reference in New Issue
Block a user