mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-02-02 04:57:51 +01:00
Fix os.join() => os.path.join()
This commit is contained in:
@@ -2511,7 +2511,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"import PIL\n",
|
"import PIL\n",
|
||||||
"\n",
|
"\n",
|
||||||
"image_path = os.join(\"images\", \"rl\", \"breakout.gif\")\n",
|
"image_path = os.path.join(\"images\", \"rl\", \"breakout.gif\")\n",
|
||||||
"frame_images = [PIL.Image.fromarray(frame) for frame in frames[:150]]\n",
|
"frame_images = [PIL.Image.fromarray(frame) for frame in frames[:150]]\n",
|
||||||
"frame_images[0].save(image_path, format='GIF',\n",
|
"frame_images[0].save(image_path, format='GIF',\n",
|
||||||
" append_images=frame_images[1:],\n",
|
" append_images=frame_images[1:],\n",
|
||||||
@@ -2752,7 +2752,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.6.8"
|
"version": "3.7.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|||||||
Reference in New Issue
Block a user