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