Fix bug in solution 53 .ipynb & .md files
This commit is contained in:
parent
33ee5ada7f
commit
e2dc21f4ac
@ -1017,9 +1017,12 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"Z = np.arange(10, dtype=np.float32)\n",
|
||||
"Z = Z.astype(np.int32, copy=False)\n",
|
||||
"print(Z)"
|
||||
"# Thanks Vikas (https://stackoverflow.com/a/10622758/5989906) \n",
|
||||
"# & unutbu (https://stackoverflow.com/a/4396247/5989906)\n",
|
||||
"Z = (np.random.rand(10)*100).astype(np.float32)\n",
|
||||
"Y = Z.view(np.int32)\n",
|
||||
"Y[:] = Z\n",
|
||||
"print(Y)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -2165,7 +2168,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.6.4"
|
||||
"version": "3.7.6"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
@ -527,9 +527,12 @@ print(D)
|
||||
|
||||
|
||||
```python
|
||||
Z = np.arange(10, dtype=np.float32)
|
||||
Z = Z.astype(np.int32, copy=False)
|
||||
print(Z)
|
||||
# Thanks Vikas (https://stackoverflow.com/a/10622758/5989906)
|
||||
# & unutbu (https://stackoverflow.com/a/4396247/5989906)
|
||||
Z = (np.random.rand(10)*100).astype(np.float32)
|
||||
Y = Z.view(np.int32)
|
||||
Y[:] = Z
|
||||
print(Y)
|
||||
```
|
||||
|
||||
#### 54. How to read the following file? (★★☆)
|
||||
|
Loading…
Reference in New Issue
Block a user