请按要求创建一个二维数组[[0.95,-0.246,0.088],[0.563,0.2397,0.91]]。
时间: 2023-11-30 09:00:17 浏览: 131
二维数组
方法一:直接赋值
```python
arr = [[0.95, -0.246, 0.088], [0.563, 0.2397, 0.91]]
```
方法二:使用numpy库
```python
import numpy as np
arr = np.array([[0.95, -0.246, 0.088], [0.563, 0.2397, 0.91]])
```
阅读全文