Remove from __future__ imports as we move away from Python 2

main
Aurélien Geron 2019-10-12 17:07:53 +09:30
parent 7d0052f146
commit 02205e034f
4 changed files with 0 additions and 51 deletions

View File

@ -21,23 +21,6 @@
"# Setup"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"First, let's make sure this notebook works well in both python 2 and 3:"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"# To support both python 2 and python 3\n",
"from __future__ import absolute_import, division, print_function, unicode_literals"
]
},
{
"cell_type": "markdown",
"metadata": {},

View File

@ -68,22 +68,6 @@
"# Imports"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"同时支持 Python 2 和 Python 3"
]
},
{
"cell_type": "code",
"execution_count": 78,
"metadata": {},
"outputs": [],
"source": [
"from __future__ import division, print_function, unicode_literals"
]
},
{
"cell_type": "markdown",
"metadata": {},

View File

@ -68,22 +68,6 @@
"# Imports"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"To support both Python 2 and Python 3:"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"from __future__ import division, print_function, unicode_literals"
]
},
{
"cell_type": "markdown",
"metadata": {},

View File

@ -13,8 +13,6 @@
"metadata": {},
"outputs": [],
"source": [
"from __future__ import division, print_function, unicode_literals\n",
"\n",
"import numpy as np\n",
"import tensorflow as tf\n",
"from tensorflow import keras"