代码拉取完成,页面将自动刷新
Create a checkerboard 8x8 matrix using the tile function
Normalize a 5x5 random matrix
Create a custom dtype that describes a color as four unsigned bytes (RGBA)
Multiply a 5x3 matrix by a 3x2 matrix (real matrix product)
Given a 1D array, negate all elements which are between 3 and 8, in place.
What is the output of the following script?
# Author: Jake VanderPlas
print(sum(range(5),-1))
from numpy import *
print(sum(range(5),-1))
Consider an integer vector Z, which of these expressions are legal?
Z**Z
2 << Z >> 2
Z <- Z
1j*Z
Z/1/1
Z<Z>Z
What are the result of the following expressions?
np.array(0) / np.array(0)
np.array(0) // np.array(0)
np.array([np.nan]).astype(int).astype(float)
How to round away from zero a float array ?
How to find common values between two arrays?
ID:
21. Create a checkerboard 8x8 matrix using the tile function
```python
```
22. Normalize a 5x5 random matrix
```python
```
23. Create a custom dtype that describes a color as four unsigned bytes (RGBA)
```python
```
24. Multiply a 5x3 matrix by a 3x2 matrix (real matrix product)
```python
```
25. Given a 1D array, negate all elements which are between 3 and 8, in place.
```python
```
26. What is the output of the following script?
```python
# Author: Jake VanderPlas
print(sum(range(5),-1))
from numpy import *
print(sum(range(5),-1))
```
```python
```
27. Consider an integer vector Z, which of these expressions are legal?
```python3
Z**Z
2 << Z >> 2
Z <- Z
1j*Z
Z/1/1
Z<Z>Z
```
```python
```
28. What are the result of the following expressions?
```python
np.array(0) / np.array(0)
np.array(0) // np.array(0)
np.array([np.nan]).astype(int).astype(float)
```
```python
```
29. How to round away from zero a float array ?
```python
```
30. How to find common values between two arrays?
```python
```
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。