python> link> from __future__ import print_function> Make Python 3.X print () available in Python 2.X

I'm learning python code called mnist.py, which is related to Deep Learning called TensorFlow. https://www.tensorflow.org/versions/master/tutorials/mnist/tf/index.html#tensorflow-mechanics-101

About the following description in that mnist.py

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

http://salinger.github.io/python/20140211-future-module/

The __future__ module is a module for Python 2 series. Allows Python 2 series to use functions that are not compatible with Python 2 series implemented in Python 3 series.

...

In the 3rd series, print became a function print () from a statement. It was also deleted from reserved words.

Recommended Posts

python> link> from __future__ import print_function> Make Python 3.X print () available in Python 2.X
python> link> from __future__ import absolute_import
Make MeCab available from Python3
Make Opencv available in Python
[Lambda] Make import requests available [python]
TensorFlow / python> // grammar> It seems to be python's integer division / In Python 2.X, describe from __future__ import division / floor division
Make OpenCV3 available from python3 installed with pyenv
Make the library created by Eigen in C ++ available from Python with Boost.Numpy.
Python from or import
Import classes in jar files directly from Python scripts
[Lambda] Make import requests available [python]
Dynamically import scripts in Python
OCR from PDF in Python
Don't make test.py in Python!
Make a bookmarklet in Python
Make python segfault in 2 lines
Specify the encoding of the unicode string in the Python 2.x print statement
Make the morphological analysis engine MeCab available in Python 3 (March 2016 version)
Make python segfault in one line
Working with LibreOffice in Python: import
Get data from Quandl in Python
Make standard output non-blocking in Python
About Python, from and import, as
python / Make a dict from a list.
Extract text from images in Python
Make python segfault in three lines
[Python] Make pip available on macOS
Extract strings from files in Python